2018-08-27 09:35:54 +00:00
|
|
|
{ stdenv, fetchPypi, fetchFromGitHub, buildPythonPackage, pytest }:
|
2018-08-26 12:44:16 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "backports.shutil_which";
|
2018-11-20 10:58:35 +00:00
|
|
|
version = "3.5.2";
|
2018-08-26 12:44:16 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-20 10:58:35 +00:00
|
|
|
sha256 = "fe39f567cbe4fad89e8ac4dbeb23f87ef80f7fe8e829669d0221ecdb0437c133";
|
2018-08-26 12:44:16 +00:00
|
|
|
};
|
|
|
|
|
2018-08-27 09:35:54 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test test
|
|
|
|
'';
|
2018-08-26 12:44:16 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|