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";
|
2018-10-25 15:54:03 +01:00
|
|
|
version = "0.5.2";
|
2018-04-06 12:34:03 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-25 15:54:03 +01:00
|
|
|
sha256 = "fecddd531f237ffc5db8b215409afb18fa30300699064cca4817521b4fc81815";
|
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;
|
|
|
|
};
|
|
|
|
}
|