tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.confuse: enable tests
Fabian Affolter
4 years ago
e329096f
ef4c7248
+26
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
confuse
default.nix
+26
-6
pkgs/development/python-modules/confuse/default.nix
reviewed
···
1
1
{ buildPythonPackage
2
2
, enum34
3
3
-
, fetchPypi
3
3
+
, fetchFromGitHub
4
4
+
, flit-core
4
5
, isPy27
5
6
, lib
6
7
, pathlib
7
8
, pyyaml
9
9
+
, pytestCheckHook
8
10
}:
9
11
10
12
buildPythonPackage rec {
11
13
pname = "confuse";
12
14
version = "1.5.0";
15
15
+
format = "flit";
13
16
14
14
-
src = fetchPypi {
15
15
-
inherit pname version;
16
16
-
sha256 = "sha256-kvvKHHBhESDqciNy4MBxwNNCp195a0veS/A0jqSfAi4=";
17
17
+
src = fetchFromGitHub {
18
18
+
owner = "beetbox";
19
19
+
repo = pname;
20
20
+
rev = "v${version}";
21
21
+
sha256 = "1kvilxhjifvz6ra64jadf9jiwphrah5rcb9ryq0v7w1dywgn4qp7";
17
22
};
18
23
19
19
-
propagatedBuildInputs = [ pyyaml ] ++ lib.optionals isPy27 [ enum34 pathlib ] ;
24
24
+
nativeBuildInputs = [
25
25
+
flit-core
26
26
+
];
27
27
+
28
28
+
propagatedBuildInputs = [
29
29
+
pyyaml
30
30
+
] ++ lib.optionals isPy27 [
31
31
+
enum34
32
32
+
pathlib
33
33
+
] ;
34
34
+
35
35
+
checkInputs = [
36
36
+
pytestCheckHook
37
37
+
];
38
38
+
39
39
+
pythonImportsCheck = [ "confuse" ];
20
40
21
41
meta = with lib; {
22
22
-
description = "Confuse is a configuration library for Python that uses YAML.";
42
42
+
description = "Python configuration library for Python that uses YAML";
23
43
homepage = "https://github.com/beetbox/confuse";
24
44
license = licenses.mit;
25
45
maintainers = with maintainers; [ lovesegfault ];