diff --git a/pkgs/development/python-modules/appdirs/default.nix b/pkgs/development/python-modules/appdirs/default.nix index dff911c89dae..d3e71a5f9051 100644 --- a/pkgs/development/python-modules/appdirs/default.nix +++ b/pkgs/development/python-modules/appdirs/default.nix @@ -2,21 +2,34 @@ lib, buildPythonPackage, fetchPypi, + pythonOlder, + setuptools, + unittestCheckHook, }: buildPythonPackage rec { pname = "appdirs"; version = "1.4.4"; - format = "setuptools"; + pypoject = true; + + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - sha256 = "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"; + hash = "sha256-fV0BZ7KxuoIWR2Fq9Gp0nRxlN0DdDSQVEA/ibiev30E="; }; + build-system = [ setuptools ]; + + nativeCheckInputs = [ unittestCheckHook ]; + + pythonImportsCheck = [ "appdirs" ]; + meta = { description = "Python module for determining appropriate platform-specific dirs"; homepage = "https://github.com/ActiveState/appdirs"; + changelog = "https://github.com/ActiveState/appdirs/releases/tag/${version}"; license = lib.licenses.mit; + maintainers = [ ]; }; }