2018-10-25 15:54:03 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, glibcLocales }:
|
2018-04-06 12:34:03 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "whichcraft";
|
2019-09-28 19:41:21 +01:00
|
|
|
version = "0.6.1";
|
2018-04-06 12:34:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 19:41:21 +01:00
|
|
|
sha256 = "11yfkzyplizdgndy34vyd5qlmr1n5mxis3a3svxmx8fnccdvknxc";
|
2018-04-06 12:34:03 +01:00
|
|
|
};
|
|
|
|
|
2018-10-25 15:54:03 +01:00
|
|
|
LC_ALL="en_US.utf-8";
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
2018-04-06 12:34:03 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
2018-04-06 12:36:48 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-04-06 12:34:03 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/pydanny/whichcraft;
|
|
|
|
description = "Cross-platform cross-python shutil.which functionality";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|