at 23.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, jellyfish 5}: 6 7buildPythonPackage rec { 8 pname = "us"; 9 version = "2.0.2"; 10 11 propagatedBuildInputs = [ jellyfish ]; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "cb11ad0d43deff3a1c3690c74f0c731cff5b862c73339df2edd91133e1496fbc"; 16 }; 17 18 # Upstream requires jellyfish==0.5.6 but we have 0.6.1 19 postPatch = '' 20 substituteInPlace setup.py --replace "jellyfish==" "jellyfish>=" 21 ''; 22 23 doCheck = false; # pypi version doesn't include tests 24 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 }; 36}