2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hatchling
|
|
|
|
, pytestCheckHook
|
|
|
|
, bracex
|
|
|
|
}:
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wcmatch";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "8.4";
|
|
|
|
format = "pyproject";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-uk/FVY+JRr8f/HA0sFuBTYJdaUESSZyGA14OTTmLamc=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
propagatedBuildInputs = [ bracex ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"TestTilde"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "wcmatch" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Wilcard File Name matching library";
|
|
|
|
homepage = "https://github.com/facelessuser/wcmatch";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|