nixpkgs/pkgs/development/python-modules/py-serializable/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

51 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
defusedxml,
fetchFromGitHub,
lxml,
poetry-core,
pytestCheckHook,
xmldiff,
}:
buildPythonPackage rec {
pname = "py-serializable";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "madpah";
repo = "serializable";
tag = "v${version}";
hash = "sha256-nou1/80t9d2iKOdZZbcN4SI3dlvuC8T55KMCP/cDEEU=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [ "defusedxml" ];
dependencies = [ defusedxml ];
nativeCheckInputs = [
lxml
pytestCheckHook
xmldiff
];
pythonImportsCheck = [ "py_serializable" ];
disabledTests = [
# AssertionError: '<ns0[155 chars]itle>The Phoenix
"test_serializable_no_defaultNS"
"test_serializable_with_defaultNS"
];
meta = {
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/${src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}