btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / development / python-modules / grandalf / default.nix
blobc447d061e4a258b96ee83dd869d5f1f5d58bffff
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pyparsing,
6   future,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "grandalf";
13   version = "0.7";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "bdcht";
20     repo = pname;
21     rev = "v${version}";
22     hash = "sha256-j2SvpQvDMfwoj2PAQSxzEIyIzzJ61Eb9wgetKyni6A4=";
23   };
25   propagatedBuildInputs = [
26     pyparsing
27     future
28   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   patches = [ ./no-setup-requires-pytestrunner.patch ];
34   pythonImportsCheck = [ "grandalf" ];
36   meta = with lib; {
37     description = "Module for experimentations with graphs and drawing algorithms";
38     homepage = "https://github.com/bdcht/grandalf";
39     license = licenses.gpl2Only;
40     maintainers = with maintainers; [ cmcdragonkai ];
41   };