diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-isort/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-isort/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-isort/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-isort/default.nix new file mode 100644 index 000000000000..869466c65001 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/pytest-isort/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, fetchPypi, isPy27, mock, pytest, isort }: + +buildPythonPackage rec { + pname = "pytest-isort"; + version = "1.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "01j0sx8yxd7sbmvwky68mvnwrxxs5bjkvi61043jzff1ga92kg9h"; + }; + + propagatedBuildInputs = [ isort ]; + + checkInputs = [ pytest ] + ++ lib.optionals isPy27 [ mock ]; + + checkPhase = '' + py.test -vs --cache-clear + ''; + + meta = with lib; { + description = "Pytest plugin to perform isort checks (import ordering)"; + homepage = "https://github.com/moccu/pytest-isort/"; + license = licenses.bsd3; + }; +} |