depot/third_party/nixpkgs/pkgs/development/python-modules/schema/default.nix

41 lines
766 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
mock,
pytestCheckHook,
pythonOlder,
pythonRelaxDepsHook,
}:
buildPythonPackage rec {
pname = "schema";
version = "0.7.5";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-8GcXESxhiVyrxHB3UriHFuhCCogZ1xQEUB4RT5EEMZc=";
};
nativeBuildInputs = [ pythonRelaxDepsHook ];
pythonRemoveDeps = [ "contextlib2" ];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "schema" ];
meta = with lib; {
description = "Library for validating Python data structures";
homepage = "https://github.com/keleshev/schema";
license = licenses.mit;
maintainers = with maintainers; [ tobim ];
};
}