2018-10-25 16:54:03 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, glibcLocales }:
|
2018-04-06 13:34:03 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "whichcraft";
|
2018-10-25 16:54:03 +02:00
|
|
|
version = "0.5.2";
|
2018-04-06 13:34:03 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-25 16:54:03 +02:00
|
|
|
sha256 = "fecddd531f237ffc5db8b215409afb18fa30300699064cca4817521b4fc81815";
|
2018-04-06 13:34:03 +02:00
|
|
|
};
|
|
|
|
|
2018-10-25 16:54:03 +02:00
|
|
|
LC_ALL="en_US.utf-8";
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
2018-04-06 13:34:03 +02:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
2018-04-06 13:36:48 +02:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-04-06 13:34:03 +02:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/pydanny/whichcraft;
|
|
|
|
description = "Cross-platform cross-python shutil.which functionality";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|