depot/third_party/nixpkgs/pkgs/development/python-modules/py-serializable/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
defusedxml,
fetchFromGitHub,
lxml,
poetry-core,
pytestCheckHook,
pythonOlder,
xmldiff,
}:
buildPythonPackage rec {
pname = "py-serializable";
version = "1.1.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "madpah";
repo = "serializable";
rev = "refs/tags/v${version}";
hash = "sha256-2A+QjokZ7gtgstclZ7PFSPymYjQYKsLVXy9xbFOfxLo=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [ "defusedxml" ];
dependencies = [ defusedxml ];
nativeCheckInputs = [
lxml
pytestCheckHook
xmldiff
];
pythonImportsCheck = [ "serializable" ];
disabledTests = [
# AssertionError: '<ns0[155 chars]itle>The Phoenix
"test_serializable_no_defaultNS"
"test_serializable_with_defaultNS"
];
meta = with lib; {
description = "Library to aid with serialisation and deserialisation to/from JSON and XML";
homepage = "https://github.com/madpah/serializable";
changelog = "https://github.com/madpah/serializable/blob/v${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}