c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
43 lines
764 B
Nix
43 lines
764 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hatchling
|
|
, pytestCheckHook
|
|
, bracex
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wcmatch";
|
|
version = "8.5.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-wAiMf2Qmz2vyflMOK3tzQDGQX35JBHX9g8fFAIq1gbM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [ bracex ];
|
|
|
|
nativeCheckInputs = [ 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; [ ];
|
|
};
|
|
}
|