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