mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
52 lines
1009 B
Nix
52 lines
1009 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, defusedxml
|
|
, fetchFromGitHub
|
|
, lxml
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, xmldiff
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-serializable";
|
|
version = "0.12.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "madpah";
|
|
repo = "serializable";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-TnO8mkRJfdTO1sA26bqh46EMes2TpLXJwpDdrvPPC9g=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
defusedxml
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
lxml
|
|
pytestCheckHook
|
|
xmldiff
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"serializable"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|