depot/third_party/nixpkgs/pkgs/development/python-modules/pyschemes/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
1,023 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
fetchpatch,
}:
buildPythonPackage rec {
pname = "pyschemes";
version = "unstable-2017-11-08";
format = "setuptools";
src = fetchFromGitHub {
owner = "spy16";
repo = pname;
rev = "ca6483d13159ba65ba6fc2f77b90421c40f2bbf2";
hash = "sha256-PssucudvlE8mztwVme70+h+2hRW/ri9oV9IZayiZhdU=";
};
patches = [
# Fix python 3.10 compatibility. Tracked upstream in
# https://github.com/spy16/pyschemes/pull/6
(fetchpatch {
url = "https://github.com/spy16/pyschemes/commit/23011128c6c22838d4fca9e00fd322a20bb566c4.patch";
hash = "sha256-vDaWxMrn2aC2wmd035EWRZ3cd/XME81z/BWG0f2T9jc=";
})
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyschemes" ];
meta = with lib; {
description = "A library for validating data structures in Python";
homepage = "https://github.com/spy16/pyschemes";
license = licenses.wtfpl;
maintainers = with maintainers; [ gador ];
};
}