1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pyparsing
5, future
6, pytest
7, pytest-runner
8}:
9
10buildPythonPackage rec {
11 pname = "grandalf";
12 version = "0.6";
13
14 # fetch from github to acquire tests
15 src = fetchFromGitHub {
16 owner = "bdcht";
17 repo = "grandalf";
18 rev = "v${version}";
19 sha256 = "1f1l288sqna0bca7dwwvyw7wzg9b2613g6vc0g0vfngm7k75b2jg";
20 };
21
22 propagatedBuildInputs = [
23 pyparsing
24 future
25 ];
26
27 checkInputs = [ pytest pytest-runner ];
28
29 patches = [ ./no-setup-requires-pytestrunner.patch ];
30
31 checkPhase = ''
32 pytest tests
33 '';
34
35 meta = with lib; {
36 description = "A python package made for experimentations with graphs and drawing algorithms";
37 homepage = "https://github.com/bdcht/grandalf";
38 license = licenses.gpl2;
39 maintainers = with maintainers; [ cmcdragonkai ];
40 };
41}