tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.cligj: enable tests
Jörg Thalheim
8 years ago
e1eb89e3
85011d70
+13
-5
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
cligj
default.nix
+13
-5
pkgs/development/python-modules/cligj/default.nix
···
1
1
-
{ stdenv, buildPythonPackage, fetchPypi,
2
2
-
click
1
1
+
{ stdenv, buildPythonPackage, fetchFromGitHub
2
2
+
, click, pytest, glibcLocales
3
3
}:
4
4
5
5
buildPythonPackage rec {
···
7
7
version = "0.4.0";
8
8
name = "${pname}-${version}";
9
9
10
10
-
src = fetchPypi {
11
11
-
inherit pname version;
12
12
-
sha256 = "0m1zic66nay2rymfa9krd3jfpyajxjnbmzw7c2q764aw9ychgb8j";
10
10
+
src = fetchFromGitHub {
11
11
+
owner = "mapbox";
12
12
+
repo = "cligj";
13
13
+
rev = version;
14
14
+
sha256 = "0fclxagxv23v75yiypb29a8sja23dakhvmx3blmxyhg2sci92sx8";
13
15
};
14
16
15
17
propagatedBuildInputs = [
16
18
click
17
19
];
20
20
+
21
21
+
checkInputs = [ pytest glibcLocales ];
22
22
+
23
23
+
checkPhase = ''
24
24
+
LC_ALL=en_US.utf-8 pytest tests
25
25
+
'';
18
26
19
27
meta = with stdenv.lib; {
20
28
description = "Click params for commmand line interfaces to GeoJSON";