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