Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python.pkgs.cligj: enable tests

+13 -5
+13 -5
pkgs/development/python-modules/cligj/default.nix
··· 1 - { stdenv, buildPythonPackage, fetchPypi, 2 - click 1 + { stdenv, buildPythonPackage, fetchFromGitHub 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 - src = fetchPypi { 11 - inherit pname version; 12 - sha256 = "0m1zic66nay2rymfa9krd3jfpyajxjnbmzw7c2q764aw9ychgb8j"; 10 + src = fetchFromGitHub { 11 + owner = "mapbox"; 12 + repo = "cligj"; 13 + rev = version; 14 + sha256 = "0fclxagxv23v75yiypb29a8sja23dakhvmx3blmxyhg2sci92sx8"; 13 15 }; 14 16 15 17 propagatedBuildInputs = [ 16 18 click 17 19 ]; 20 + 21 + checkInputs = [ pytest glibcLocales ]; 22 + 23 + checkPhase = '' 24 + LC_ALL=en_US.utf-8 pytest tests 25 + ''; 18 26 19 27 meta = with stdenv.lib; { 20 28 description = "Click params for commmand line interfaces to GeoJSON";