nixpkgs/pkgs/development/python-modules/cligj/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

34 lines
711 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub
, click, pytest, glibcLocales
}:
buildPythonPackage rec {
pname = "cligj";
version = "0.7.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "mapbox";
repo = "cligj";
rev = version;
hash = "sha256-0f9+I6ozX93Vn0l7+WR0mpddDZymJQ3+Krovt6co22Y=";
};
propagatedBuildInputs = [
click
];
nativeCheckInputs = [ pytest glibcLocales ];
checkPhase = ''
LC_ALL=en_US.utf-8 pytest tests
'';
meta = with lib; {
description = "Click params for command line interfaces to GeoJSON";
homepage = "https://github.com/mapbox/cligj";
license = licenses.bsd3;
maintainers = with maintainers; [ knedlsepp ];
};
}