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