nixpkgs/pkgs/development/python-modules/pytest-describe/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

43 lines
756 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
# build
, pytest
# tests
, py
, pytestCheckHook
}:
let
pname = "pytest-describe";
version = "2.0.1";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-5cuqMRafAGA0itXKAZECfl8fQfPyf97vIINl4JxV65o=";
};
buildInputs = [
pytest
];
nativeCheckInputs = [
py
pytestCheckHook
];
meta = with lib; {
description = "Describe-style plugin for the pytest framework";
homepage = "https://github.com/pytest-dev/pytest-describe";
changelog = "https://github.com/pytest-dev/pytest-describe/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}