python.pkgs.cligj: enable tests
This commit is contained in:
parent
85011d7084
commit
e1eb89e3e1
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi,
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
||||||
click
|
, click, pytest, glibcLocales
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -7,15 +7,23 @@ buildPythonPackage rec {
|
|||||||
version = "0.4.0";
|
version = "0.4.0";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "mapbox";
|
||||||
sha256 = "0m1zic66nay2rymfa9krd3jfpyajxjnbmzw7c2q764aw9ychgb8j";
|
repo = "cligj";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0fclxagxv23v75yiypb29a8sja23dakhvmx3blmxyhg2sci92sx8";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
click
|
click
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [ pytest glibcLocales ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
LC_ALL=en_US.utf-8 pytest tests
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Click params for commmand line interfaces to GeoJSON";
|
description = "Click params for commmand line interfaces to GeoJSON";
|
||||||
homepage = https://github.com/mapbox/cligj;
|
homepage = https://github.com/mapbox/cligj;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user