depot/third_party/nixpkgs/pkgs/development/python-modules/wcmatch/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
760 B
Nix

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