diff --git a/pkgs/development/python-modules/pydocstyle/default.nix b/pkgs/development/python-modules/pydocstyle/default.nix index 0658e1857174f..6740e24c3c10b 100644 --- a/pkgs/development/python-modules/pydocstyle/default.nix +++ b/pkgs/development/python-modules/pydocstyle/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, isPy3k +, pythonOlder , fetchFromGitHub , snowballstemmer , pytestCheckHook @@ -9,15 +9,15 @@ buildPythonPackage rec { pname = "pydocstyle"; version = "6.1.1"; - disabled = !isPy3k; - format = "setuptools"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "PyCQA"; repo = pname; rev = version; - sha256 = "sha256-j0WMD2qKDdMaKG2FxrrM/O7zX4waJ1afaRPRv70djkE="; + hash = "sha256-j0WMD2qKDdMaKG2FxrrM/O7zX4waJ1afaRPRv70djkE="; }; propagatedBuildInputs = [ @@ -32,6 +32,10 @@ buildPythonPackage rec { "src/tests/test_integration.py" # runs pip install ]; + pythonImportsCheck = [ + "pydocstyle" + ]; + meta = with lib; { description = "Python docstring style checker"; homepage = "https://github.com/PyCQA/pydocstyle"; diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index d6d09a412427c..a47c20cda1e93 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -121,6 +121,7 @@ mapAliases ({ pyspotify = throw "pyspotify has been removed because Spotify stopped supporting libspotify"; # added 2022-05-29 pytest_6 = pytest; # added 2022-02-10 pytestcov = pytest-cov; # added 2021-01-04 + pytest-pep257 = throw "pytest-pep257 was removed because it is abandoned and is not compatible with pydocstyle"; # added 2022-03-28 pytest-pep8 = pytestpep8; # added 2021-01-04 pytest-pep257 = throw "pytest-pep257 was removed, as the pep257 package was migrated into pycodestyle"; # added 2022-04-12 pytest-pythonpath = throw "pytest-pythonpath is obsolete as of pytest 7.0.0 and has been removed"; # added 2022-03-09