Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / grandalf / default.nix
blob1852364fbfe2e3555f1d9d6f5dc197276a5ad7a9
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pyparsing
5 , future
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "grandalf";
12   version = "0.7";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "bdcht";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-j2SvpQvDMfwoj2PAQSxzEIyIzzJ61Eb9wgetKyni6A4=";
22   };
24   propagatedBuildInputs = [
25     pyparsing
26     future
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   patches = [
34     ./no-setup-requires-pytestrunner.patch
35   ];
37   pythonImportsCheck = [
38     "grandalf"
39   ];
41   meta = with lib; {
42     description = "Module for experimentations with graphs and drawing algorithms";
43     homepage = "https://github.com/bdcht/grandalf";
44     license = licenses.gpl2Only;
45     maintainers = with maintainers; [ cmcdragonkai ];
46   };