From 7cce13c5aa07c60e6eba419fe84c67b51e809bef Mon Sep 17 00:00:00 2001 From: Victor multun Collod Date: Sun, 29 Dec 2019 19:35:41 +0100 Subject: [PATCH] pythonPackages.shutilwhich: init at 1.1.0 --- .../python-modules/shutilwhich/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/shutilwhich/default.nix diff --git a/pkgs/development/python-modules/shutilwhich/default.nix b/pkgs/development/python-modules/shutilwhich/default.nix new file mode 100644 index 000000000000..d88141c8b358 --- /dev/null +++ b/pkgs/development/python-modules/shutilwhich/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytest +}: + +buildPythonPackage rec { + pname = "shutilwhich"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "mbr"; + repo = pname; + rev = version; + sha256 = "05fwcjn86w8wprck04iv1zccfi39skdf0lhwpb4b9gpvklyc9mj0"; + }; + + checkInputs = [ pytest ]; + + checkPhase = '' + pytest -rs + ''; + + meta = with lib; { + description = "Backport of shutil.which"; + license = licenses.psfl; + homepage = https://github.com/mbr/shutilwhich; + maintainers = with maintainers; [ multun ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5d64b07a74f2..45623361fcb4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5225,6 +5225,8 @@ in { shippai = callPackage ../development/python-modules/shippai {}; + shutilwhich = callPackage ../development/python-modules/shutilwhich { }; + simanneal = callPackage ../development/python-modules/simanneal { }; simplegeneric = callPackage ../development/python-modules/simplegeneric { };