mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
39 lines
838 B
Nix
39 lines
838 B
Nix
{ 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 ];
|
|
};
|
|
}
|