nixpkgs/pkgs/development/python-modules/assertpy/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

33 lines
625 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "assertpy";
version = "1.1";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "0hnfh45cmqyp7zasrllwf8gbq3mazqlhhk0sq1iqlh6fig0yfq2f";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"assertpy"
];
meta = with lib; {
description = "Simple assertion library for unit testing with a fluent API";
homepage = "https://github.com/assertpy/assertpy";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}