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