-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecipe.nix
32 lines (25 loc) · 843 Bytes
/
recipe.nix
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
{ curl, lib, python38, python38Packages, nix-gitignore, use_revision ? null
, report_coverage ? false }:
python38.pkgs.buildPythonPackage rec {
pname = "freexgraph";
version = "1.2.3";
src = if (builtins.isNull use_revision || use_revision == "") then
nix-gitignore.gitignoreSource [ ".git" ] ./.
else
builtins.fetchGit {
url = "https://github.com/FreeYourSoul/FreExGraph";
rev = use_revision;
};
checkInputs = [ python38Packages.pytest python38Packages.coverage curl ];
propagatedBuildInputs = with python38Packages; [ networkx tqdm ];
doCheck = true;
checkPhase = ''
python -m pytest
'';
pythonImportsCheck = [ "freexgraph" ];
meta = with lib; {
homepage = "https://github.com/pytoolz/toolz";
description = "Execution graph handling tools";
license = licenses.mit;
};
}