depot/third_party/nixpkgs/pkgs/development/python-modules/pathvalidate/default.nix

35 lines
832 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pathvalidate";
version = "3.2.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-9dB7HiN0GHBAYSofzSvLKRn42xgN8lTJWBu5C/kDN30=";
};
build-system = [ setuptools-scm ];
# Requires `pytest-md-report`, causing infinite recursion.
doCheck = false;
pythonImportsCheck = [ "pathvalidate" ];
meta = with lib; {
description = "Library to sanitize/validate a string such as filenames/file-paths/etc";
homepage = "https://github.com/thombashi/pathvalidate";
changelog = "https://github.com/thombashi/pathvalidate/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ oxalica ];
};
}