From 80b64a2e049a9cb3b722de8520af4cfb08fef52a Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Sun, 26 Aug 2018 15:44:16 +0300 Subject: [PATCH] pythonPackage.backports-shutil-which: init at 3.5.1 --- .../backports-shutil-which/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/python-modules/backports-shutil-which/default.nix diff --git a/pkgs/development/python-modules/backports-shutil-which/default.nix b/pkgs/development/python-modules/backports-shutil-which/default.nix new file mode 100644 index 000000000000..69a80b530d64 --- /dev/null +++ b/pkgs/development/python-modules/backports-shutil-which/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchPypi, buildPythonPackage }: + +buildPythonPackage rec { + pname = "backports.shutil_which"; + version = "3.5.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "16sa3adkf71862cb9pk747pw80a2f1v5m915ijb4fgj309xrlhyx"; + }; + + # Tests fail: "ValueError: underlying buffer has been detached" + doCheck = false; + + meta = with stdenv.lib; { + description = "Backport of shutil.which from Python 3.3"; + homepage = https://github.com/minrk/backports.shutil_which; + license = licenses.psfl; + maintainers = with maintainers; [ jluttine ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e718fbd33230..537a1773e54e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -216,6 +216,8 @@ in { backports_csv = callPackage ../development/python-modules/backports_csv {}; + backports-shutil-which = callPackage ../development/python-modules/backports-shutil-which {}; + bap = callPackage ../development/python-modules/bap { bap = pkgs.ocamlPackages.bap; };