1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pyparsing
5, future
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "grandalf";
12 version = "0.7";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "bdcht";
19 repo = pname;
20 rev = "v${version}";
21 hash = "sha256-j2SvpQvDMfwoj2PAQSxzEIyIzzJ61Eb9wgetKyni6A4=";
22 };
23
24 propagatedBuildInputs = [
25 pyparsing
26 future
27 ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 patches = [
34 ./no-setup-requires-pytestrunner.patch
35 ];
36
37 pythonImportsCheck = [
38 "grandalf"
39 ];
40
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 };
47}