depot/third_party/nixpkgs/pkgs/development/python-modules/pathvalidate/default.nix
Default email 13da32182d Project import generated by Copybara.
GitOrigin-RevId: a7855f2235a1876f97473a76151fec2afa02b287
2022-08-21 15:32:41 +02:00

32 lines
704 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec {
pname = "pathvalidate";
version = "2.5.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-X/V9D6vl7Lek8eSVe/61rYq1q0wPpx95xrvCS9m30U0=";
};
# 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 ];
};
}