Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / us / default.nix
blob4e7d97068f25eca7d6ae520f8441931491228bed
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , jellyfish
5 }:
7 buildPythonPackage rec {
8   pname = "us";
9   version = "2.0.2";
11   propagatedBuildInputs = [ jellyfish ];
13   src = fetchPypi {
14     inherit pname version;
15     sha256 = "cb11ad0d43deff3a1c3690c74f0c731cff5b862c73339df2edd91133e1496fbc";
16   };
18   # Upstream requires jellyfish==0.5.6 but we have 0.6.1
19   postPatch = ''
20     substituteInPlace setup.py --replace "jellyfish==" "jellyfish>="
21   '';
23   doCheck = false; # pypi version doesn't include tests
25   meta = {
26     description = "A package for easily working with US and state metadata";
27     longDescription = ''
28     all US states and territories, postal abbreviations, Associated Press style
29     abbreviations, FIPS codes, capitals, years of statehood, time zones, phonetic
30     state name lookup, is contiguous or continental, URLs to shapefiles for state,
31     census, congressional districts, counties, and census tracts
32     '';
33     homepage = "https://github.com/unitedstates/python-us/";
34     license = lib.licenses.bsd3;
35   };