From e38b122f26460992358fc4bb3ab7fc952119f03f Mon Sep 17 00:00:00 2001 From: idontgetoutmuch Date: Sat, 20 Jan 2018 04:19:13 -0800 Subject: [PATCH] pythonPackages.us: init at 1.0.0 (#34076) --- .../development/python-modules/us/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/us/default.nix diff --git a/pkgs/development/python-modules/us/default.nix b/pkgs/development/python-modules/us/default.nix new file mode 100644 index 000000000000..eb001410ce5f --- /dev/null +++ b/pkgs/development/python-modules/us/default.nix @@ -0,0 +1,29 @@ +{ lib +, buildPythonPackage +, fetchPypi +, jellyfish +}: + +buildPythonPackage rec { + pname = "us"; + version = "1.0.0"; + + propagatedBuildInputs = [ jellyfish ]; + + src = fetchPypi { + inherit pname version; + sha256 = "1niglalkp7pinibzbxjdz9mxx9qmwkrh8884dag3kr72cfkrpp09"; + }; + + 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 + ''; + homepage = https://github.com/unitedstates/python-us/; + license = lib.licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 125d89fe800c..c2d56c269f59 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -22595,6 +22595,8 @@ EOF voluptuous = callPackage ../development/python-modules/voluptuous { }; pysigset = callPackage ../development/python-modules/pysigset { }; + + us = callPackage ../development/python-modules/us { }; }); in fix' (extends overrides packages)