depot/third_party/nixpkgs/pkgs/development/python-modules/py-serializable/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, defusedxml
, fetchFromGitHub
, lxml
, poetry-core
, pytestCheckHook
, pythonOlder
, xmldiff
}:
buildPythonPackage rec {
pname = "py-serializable";
version = "0.15.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "madpah";
repo = "serializable";
rev = "refs/tags/v${version}";
hash = "sha256-U01XRT6XS0Uxpk+2pYOGAkZiZ5kogMBtcuEU1OJpSMo=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
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 = "Pythonic 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/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}