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 0000000000000..69a80b530d64b --- /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 e6ca492a534c0..bd2a52dca4da1 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; };