diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pytest-filter-subpackage/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pytest-filter-subpackage/default.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pytest-filter-subpackage/default.nix b/nixpkgs/pkgs/development/python-modules/pytest-filter-subpackage/default.nix new file mode 100644 index 000000000000..054170408be6 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pytest-filter-subpackage/default.nix @@ -0,0 +1,53 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, pytest-cov +, pytest-doctestplus +, pytestCheckHook +, pythonOlder +, setuptools-scm +}: + +buildPythonPackage rec { + pname = "pytest-filter-subpackage"; + version = "0.1.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-H66jZxeAPlJFiNbBCdJtINOzRCLo1qloEnWJd9ygF4I="; + }; + + nativeBuildInputs = [ + setuptools-scm + ]; + + buildInputs = [ + pytest + ]; + + propagatedBuildInputs = [ + pytest-doctestplus + pytest-cov + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + # missing some files + disabledTests = [ + "with_rst" + ]; + + meta = with lib; { + description = "Meta-package containing dependencies for testing"; + homepage = "https://github.com/astropy/pytest-filter-subpackage"; + changelog = "https://github.com/astropy/pytest-filter-subpackage/blob/v${version}/CHANGES.rst"; + license = licenses.bsd3; + maintainers = with maintainers; [ ]; + }; +} |