blob: 31ec1f003144d1c45035d04a6772e99442a3d727 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "pathvalidate";
version = "3.1.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-QmlwIm4kGZ/ZDZOZXSI8Hii9qWfN9DcHVaFM33KiqO4=";
};
nativeBuildInputs = [
setuptools
];
# 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 ];
};
}
|