2018-01-20 12:19:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, jellyfish
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "us";
|
2020-06-06 06:47:36 +00:00
|
|
|
version = "2.0.2";
|
2018-01-20 12:19:13 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ jellyfish ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 06:47:36 +00:00
|
|
|
sha256 = "cb11ad0d43deff3a1c3690c74f0c731cff5b862c73339df2edd91133e1496fbc";
|
2018-01-20 12:19:13 +00:00
|
|
|
};
|
|
|
|
|
2018-09-10 15:06:54 +00:00
|
|
|
# Upstream requires jellyfish==0.5.6 but we have 0.6.1
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "jellyfish==" "jellyfish>="
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false; # pypi version doesn't include tests
|
|
|
|
|
2018-01-20 12:19:13 +00:00
|
|
|
meta = {
|
|
|
|
description = "A package for easily working with US and state metadata";
|
|
|
|
longDescription = ''
|
|
|
|
all US states and territories, postal abbreviations, Associated Press style
|
|
|
|
abbreviations, FIPS codes, capitals, years of statehood, time zones, phonetic
|
|
|
|
state name lookup, is contiguous or continental, URLs to shapefiles for state,
|
|
|
|
census, congressional districts, counties, and census tracts
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/unitedstates/python-us/";
|
2018-01-20 12:19:13 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|