diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-10-20 22:09:03 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-10-20 22:09:03 +0000 |
commit | 50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e (patch) | |
tree | f2556b911180125ccbb7ed0e78a54e92da89adce /nixpkgs/pkgs/development/python-modules/pytest-spec/default.nix | |
parent | 4c16d4548a98563c9d9ad76f4e5b2202864ccd54 (diff) | |
parent | cfc75eec4603c06503ae750f88cf397e00796ea8 (diff) | |
download | nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar.gz nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar.bz2 nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar.lz nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar.xz nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar.zst nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.zip |
Merge commit 'cfc75eec4603c06503ae750f88cf397e00796ea8'
Conflicts: nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pytest-spec/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pytest-spec/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pytest-spec/default.nix b/nixpkgs/pkgs/development/python-modules/pytest-spec/default.nix new file mode 100644 index 000000000000..4a73084bd452 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/pytest-spec/default.nix @@ -0,0 +1,50 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytest +, pytestCheckHook +, pytest-describe +, pytest-cov +}: + +buildPythonPackage rec { + pname = "pytest-spec"; + version = "unstable-2023-06-04"; + pyproject = true; + + src = fetchFromGitHub { + owner = "pchomik"; + repo = "pytest-spec"; + rev = "e16e0550dd6bc557411e4312b7b42d53b26e69ef"; + hash = "sha256-dyDUdZJU4E4y1yCzunAX2c48Qv6ogu0b60U/5YbJvIU="; + }; + + postPatch = '' + sed -i '/addopts/d' setup.cfg + # TODO: upstream + substituteInPlace pyproject.toml \ + --replace "poetry>=0.12" "poetry-core" \ + --replace "poetry.masonry.api" "poetry.core.masonry.api" + ''; + + nativeBuildInputs = [ poetry-core ]; + + buildInputs = [ pytest ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-describe + ]; + + pytestFlagsArray = [ "--spec" ]; + + pythonImportsCheck = [ "pytest_spec" ]; + + meta = { + description = "A pytest plugin to display test execution output like a SPECIFICATION"; + homepage = "https://github.com/pchomik/pytest-spec"; + license = lib.licenses.gpl2Plus; + maintainers = with lib.maintainers; [ tomasajt ]; + }; +} |