at master 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 jellyfish, 6 pytestCheckHook, 7 pythonOlder, 8 pytz, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "us"; 14 version = "3.2.0"; 15 pyproject = true; 16 17 build-system = [ setuptools ]; 18 19 disabled = pythonOlder "3.6"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-yyI+hTk9zFFx6tDdISutxH+WZ7I3AP6j5+pfMQ1UUzg="; 24 }; 25 26 propagatedBuildInputs = [ 27 jellyfish 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 pytz 33 ]; 34 35 pythonImportsCheck = [ "us" ]; 36 37 meta = { 38 description = "Package for easily working with US and state metadata"; 39 mainProgram = "states"; 40 longDescription = '' 41 All US states and territories, postal abbreviations, Associated Press style 42 abbreviations, FIPS codes, capitals, years of statehood, time zones, phonetic 43 state name lookup, is contiguous or continental, URLs to shapefiles for state, 44 census, congressional districts, counties, and census tracts. 45 ''; 46 homepage = "https://github.com/unitedstates/python-us/"; 47 license = lib.licenses.bsd3; 48 maintainers = with lib.maintainers; [ bot-wxt1221 ]; 49 }; 50}