summary refs log tree commit diff
path: root/pkgs/development/python-modules/grandalf/default.nix
blob: 2d2658e00f84805b879be5ca6968fc7873de4c6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyparsing
, future
, pytest
, pytestrunner
}:

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 pytestrunner ];

  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 ];
  };
}