depot/third_party/nixpkgs/pkgs/development/python-modules/voluptuous/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

47 lines
962 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "voluptuous";
version = "0.14.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "alecthomas";
repo = "voluptuous";
rev = "refs/tags/${version}";
hash = "sha256-7KXuypcKoqZboHTzoNKK5sYUR57wWGJu6y9zkLecep0=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"voluptuous"
];
pytestFlagsArray = [
"voluptuous/tests/"
];
meta = with lib; {
description = "Python data validation library";
downloadPage = "https://github.com/alecthomas/voluptuous";
homepage = "http://alecthomas.github.io/voluptuous/";
changelog = "https://github.com/alecthomas/voluptuous/blob/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}