depot/third_party/nixpkgs/pkgs/development/python-modules/wcmatch/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

40 lines
741 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
pytestCheckHook,
bracex,
}:
buildPythonPackage rec {
pname = "wcmatch";
version = "10.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-5y8N4Ju6agTg3nCTewzwblXzbzez3rQi36+FS4Z7hAo=";
};
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 = [ ];
};
}