Skip to content

Commit 802cb21

Browse files
authored
python3Packages.us: switch to pyproject (#354950)
2 parents 99ad7da + e065e55 commit 802cb21

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

pkgs/development/python-modules/us/default.nix

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
pytestCheckHook,
77
pythonOlder,
88
pytz,
9+
setuptools,
910
}:
1011

1112
buildPythonPackage rec {
1213
pname = "us";
1314
version = "3.2.0";
14-
format = "setuptools";
15+
pyproject = true;
16+
17+
build-system = [ setuptools ];
1518

1619
disabled = pythonOlder "3.6";
1720

@@ -20,13 +23,9 @@ buildPythonPackage rec {
2023
hash = "sha256-yyI+hTk9zFFx6tDdISutxH+WZ7I3AP6j5+pfMQ1UUzg=";
2124
};
2225

23-
postPatch = ''
24-
# Upstream spins jellyfish
25-
substituteInPlace setup.py \
26-
--replace "jellyfish==" "jellyfish>="
27-
'';
28-
29-
propagatedBuildInputs = [ jellyfish ];
26+
propagatedBuildInputs = [
27+
jellyfish
28+
];
3029

3130
nativeCheckInputs = [
3231
pytestCheckHook
@@ -35,7 +34,7 @@ buildPythonPackage rec {
3534

3635
pythonImportsCheck = [ "us" ];
3736

38-
meta = with lib; {
37+
meta = {
3938
description = "Package for easily working with US and state metadata";
4039
mainProgram = "states";
4140
longDescription = ''
@@ -45,7 +44,7 @@ buildPythonPackage rec {
4544
census, congressional districts, counties, and census tracts.
4645
'';
4746
homepage = "https://github.com/unitedstates/python-us/";
48-
license = licenses.bsd3;
49-
maintainers = [ ];
47+
license = lib.licenses.bsd3;
48+
maintainers = with lib.maintainers; [ bot-wxt1221 ];
5049
};
5150
}

0 commit comments

Comments
 (0)