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

48 lines
858 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pyparsing
, future
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "grandalf";
version = "0.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bdcht";
repo = pname;
rev = "v${version}";
hash = "sha256-j2SvpQvDMfwoj2PAQSxzEIyIzzJ61Eb9wgetKyni6A4=";
};
propagatedBuildInputs = [
pyparsing
future
];
nativeCheckInputs = [
pytestCheckHook
];
patches = [
./no-setup-requires-pytestrunner.patch
];
pythonImportsCheck = [
"grandalf"
];
meta = with lib; {
description = "Module for experimentations with graphs and drawing algorithms";
homepage = "https://github.com/bdcht/grandalf";
license = licenses.gpl2Only;
maintainers = with maintainers; [ cmcdragonkai ];
};
}