forked from aboutcode-org/univers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
overlay.nix
42 lines (37 loc) · 1.23 KB
/
overlay.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
33
34
35
36
37
38
39
40
41
42
final: prev: rec {
python3 = prev.python3.override {
packageOverrides = final: prev:
{
univers = python3Packages.callPackage
({ lib
, buildPythonPackage
, git
, setuptools-scm
, attrs
, packaging
, pyparsing
, semantic-version
, semver
, black
, commoncode
, pytestCheckHook
, saneyaml
}: buildPythonPackage rec {
name = "univers";
src = ./.;
nativeBuildInputs = [ git setuptools-scm ];
propagatedBuildInputs = [ attrs packaging pyparsing semantic-version semver ];
checkInputs = [ black commoncode pytestCheckHook saneyaml ];
dontConfigure = true; # ./configure tries to setup virtualenv and downloads dependencies
pythonImportsCheck = [ "univers" ];
meta = with lib; {
description = "Library for parsing version ranges and expressions";
homepage = "https://github.com/nexB/univers";
license = with licenses; [ asl20 bsd3 mit ];
};
})
{ };
};
};
python3Packages = prev.recurseIntoAttrs python3.pkgs;
}