nixpkgs/pkgs/development/python-modules/cligj/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

33 lines
692 B
Nix

{ stdenv, buildPythonPackage, fetchFromGitHub
, click, pytest, glibcLocales
}:
buildPythonPackage rec {
pname = "cligj";
version = "0.4.0";
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;
license = licenses.bsd3;
maintainers = with maintainers; [ knedlsepp ];
};
}