depot/third_party/nixpkgs/pkgs/development/python-modules/wcmatch/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

40 lines
742 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 = [ ];
};
}