Skip to content

Commit

Permalink
python3Packages.us: switch to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Nov 10, 2024
1 parent e19b3c8 commit 80db3cc
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions pkgs/development/python-modules/us/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
pytestCheckHook,
pythonOlder,
pytz,
setuptools,
}:

buildPythonPackage rec {
pname = "us";
version = "3.2.0";
format = "setuptools";
pyproject = true;

build-systems = [ setuptools ];

disabled = pythonOlder "3.6";

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

postPatch = ''
# Upstream spins jellyfish
substituteInPlace setup.py \
--replace "jellyfish==" "jellyfish>="
'';

propagatedBuildInputs = [ jellyfish ];
propagatedBuildInputs = [
jellyfish
];

nativeCheckInputs = [
pytestCheckHook
Expand All @@ -35,7 +34,7 @@ buildPythonPackage rec {

pythonImportsCheck = [ "us" ];

meta = with lib; {
meta = {
description = "Package for easily working with US and state metadata";
mainProgram = "states";
longDescription = ''
Expand All @@ -45,7 +44,7 @@ buildPythonPackage rec {
census, congressional districts, counties, and census tracts.
'';
homepage = "https://github.com/unitedstates/python-us/";
license = licenses.bsd3;
license = lib.licenses.bsd3;
maintainers = [ ];
};
}

0 comments on commit 80db3cc

Please sign in to comment.