nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 51 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 defusedxml, 5 fetchFromGitHub, 6 lxml, 7 poetry-core, 8 pytestCheckHook, 9 xmldiff, 10}: 11 12buildPythonPackage rec { 13 pname = "py-serializable"; 14 version = "2.1.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "madpah"; 19 repo = "serializable"; 20 tag = "v${version}"; 21 hash = "sha256-nou1/80t9d2iKOdZZbcN4SI3dlvuC8T55KMCP/cDEEU="; 22 }; 23 24 build-system = [ poetry-core ]; 25 26 pythonRelaxDeps = [ "defusedxml" ]; 27 28 dependencies = [ defusedxml ]; 29 30 nativeCheckInputs = [ 31 lxml 32 pytestCheckHook 33 xmldiff 34 ]; 35 36 pythonImportsCheck = [ "py_serializable" ]; 37 38 disabledTests = [ 39 # AssertionError: '<ns0[155 chars]itle>The Phoenix 40 "test_serializable_no_defaultNS" 41 "test_serializable_with_defaultNS" 42 ]; 43 44 meta = { 45 description = "Library to aid with serialisation and deserialisation to/from JSON and XML"; 46 homepage = "https://github.com/madpah/serializable"; 47 changelog = "https://github.com/madpah/serializable/blob/${src.tag}/CHANGELOG.md"; 48 license = lib.licenses.asl20; 49 maintainers = with lib.maintainers; [ fab ]; 50 }; 51}