mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #222418 from fabaff/py-serializable
python310Packages.py-serializable: init at 0.12.0
This commit is contained in:
commit
d7f258edb0
51
pkgs/development/python-modules/py-serializable/default.nix
Normal file
51
pkgs/development/python-modules/py-serializable/default.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -7820,6 +7820,8 @@ self: super: with self; {
|
||||
|
||||
py-nightscout = callPackage ../development/python-modules/py-nightscout { };
|
||||
|
||||
py-serializable = callPackage ../development/python-modules/py-serializable { };
|
||||
|
||||
py-synologydsm-api = callPackage ../development/python-modules/py-synologydsm-api { };
|
||||
|
||||
py-sneakers = callPackage ../development/python-modules/py-sneakers { };
|
||||
|
Loading…
Reference in New Issue
Block a user