2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2023-10-09 19:29:22 +00:00
|
|
|
, setuptools
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pathvalidate";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "3.2.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2022-08-21 13:32:41 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-XoN4z2cSv/Z/vnqDB9mfqMGgyyiqR3BW+Pw3Tw3/JK0=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
# Requires `pytest-md-report`, causing infinite recursion.
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pathvalidate"
|
|
|
|
];
|
2021-04-12 18:23:04 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-09 19:29:22 +00:00
|
|
|
description = "Library to sanitize/validate a string such as filenames/file-paths/etc";
|
2021-04-12 18:23:04 +00:00
|
|
|
homepage = "https://github.com/thombashi/pathvalidate";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/thombashi/pathvalidate/releases/tag/v${version}";
|
2021-04-12 18:23:04 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ oxalica ];
|
|
|
|
};
|
|
|
|
}
|