Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
pythonAtLeast,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "more-properties";
version = "1.1.1";
pyproject = true;
# All tests are failing with:
# AssertionError: None != 'The type of the None singleton.'
disabled = pythonAtLeast "3.13";
src = fetchFromGitHub {
owner = "madman-bob";
repo = "python-more-properties";
tag = version;
hash = "sha256-dKG97rw5IG19m7u3ZDBM2yGScL5cFaKBvGZxPVJaUTE=";
};
postPatch = ''
mv pypi_upload/setup.py .
substituteInPlace setup.py \
--replace-fail "project_root = Path(__file__).parents[1]" "project_root = Path(__file__).parents[0]"
'';
build-system = [
setuptools
];
pythonRemoveDeps = [
# dataclasses is included in Python since 3.7
"dataclasses"
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "more_properties" ];
meta = {
description = "Collection of property variants";
homepage = "https://github.com/madman-bob/python-more-properties";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}