From 09ade5d281358625562d1dc3890712e7e5ec2a75 Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Thu, 4 Oct 2018 16:06:26 -0400 Subject: [PATCH] pythonPackages.dpath: init at 1.4.2 --- .../python-modules/dpath/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/dpath/default.nix diff --git a/pkgs/development/python-modules/dpath/default.nix b/pkgs/development/python-modules/dpath/default.nix new file mode 100644 index 000000000000..3b878f7d5e4c --- /dev/null +++ b/pkgs/development/python-modules/dpath/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchPypi, buildPythonPackage +, mock, nose +}: + +buildPythonPackage rec { + pname = "dpath"; + version = "1.4.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "0gr7816pnzbyh9h1ia0qz0q1f9zfzacwb8dc36js8hw8x14myqqg"; + }; + + checkInputs = [ mock nose ]; + checkPhase = '' + nosetests + ''; + + meta = with stdenv.lib; { + homepage = https://github.com/akesterson/dpath-python; + license = [ licenses.mit ]; + description = "A python library for accessing and searching dictionaries via /slashed/paths ala xpath"; + maintainers = [ maintainers.mmlb ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6c5870b529c1..4b7ee3c2e6c1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1482,6 +1482,8 @@ in { dopy = callPackage ../development/python-modules/dopy { }; + dpath = callPackage ../development/python-modules/dpath { }; + dpkt = callPackage ../development/python-modules/dpkt {}; urllib3 = callPackage ../development/python-modules/urllib3 {};