nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pyparsing,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "grandalf";
12 version = "0.8";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "bdcht";
17 repo = "grandalf";
18 tag = "v${version}";
19 hash = "sha256-oKuzk/vsEkoiEPgt/fsaaurKfz5CElXPEJe88aFBLqU=";
20 };
21
22 patches = [ ./no-setup-requires-pytestrunner.patch ];
23
24 build-system = [ setuptools ];
25
26 dependencies = [ pyparsing ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "grandalf" ];
31
32 meta = {
33 description = "Module for experimentations with graphs and drawing algorithms";
34 homepage = "https://github.com/bdcht/grandalf";
35 license = lib.licenses.gpl2Only;
36 maintainers = with lib.maintainers; [ cmcdragonkai ];
37 };
38}