2019-06-16 21:59:06 +02:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, pytest }:
|
2018-08-26 14:44:16 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "backports.shutil_which";
|
2018-11-20 11:58:35 +01:00
|
|
|
version = "3.5.2";
|
2018-08-26 14:44:16 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-20 11:58:35 +01:00
|
|
|
sha256 = "fe39f567cbe4fad89e8ac4dbeb23f87ef80f7fe8e829669d0221ecdb0437c133";
|
2018-08-26 14:44:16 +02:00
|
|
|
};
|
|
|
|
|
2018-08-27 11:35:54 +02:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test test
|
|
|
|
'';
|
2018-08-26 14:44:16 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Backport of shutil.which from Python 3.3";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/minrk/backports.shutil_which";
|
2018-08-26 14:44:16 +02:00
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|