depot/third_party/nixpkgs/pkgs/development/python-modules/grandalf/default.nix
Default email 21cecf6002 Project import generated by Copybara.
GitOrigin-RevId: dd14e5d78e90a2ccd6007e569820de9b4861a6c2
2021-07-24 08:14:16 -04:00

41 lines
834 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pyparsing
, future
, pytest
, pytest-runner
}:
buildPythonPackage rec {
pname = "grandalf";
version = "0.6";
# fetch from github to acquire tests
src = fetchFromGitHub {
owner = "bdcht";
repo = "grandalf";
rev = "v${version}";
sha256 = "1f1l288sqna0bca7dwwvyw7wzg9b2613g6vc0g0vfngm7k75b2jg";
};
propagatedBuildInputs = [
pyparsing
future
];
checkInputs = [ pytest pytest-runner ];
patches = [ ./no-setup-requires-pytestrunner.patch ];
checkPhase = ''
pytest tests
'';
meta = with lib; {
description = "A python package made for experimentations with graphs and drawing algorithms";
homepage = "https://github.com/bdcht/grandalf";
license = licenses.gpl2;
maintainers = with maintainers; [ cmcdragonkai ];
};
}