2021-04-12 18:23:04 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pathvalidate";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.5.1";
|
2021-04-12 18:23:04 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-u8J+ZTM1q6eTWireIpliLnapSHvJAEzc8UQc6NL/SlQ=";
|
2021-04-12 18:23:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Requires `pytest-md-report`, causing infinite recursion.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pathvalidate" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python library to sanitize/validate a string such as filenames/file-paths/etc";
|
|
|
|
homepage = "https://github.com/thombashi/pathvalidate";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ oxalica ];
|
|
|
|
};
|
|
|
|
}
|