mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #269547 from pbsds/bump-frozendict-1700792500
python3Packages.frozendict: 2.3.8 -> 2.3.9
This commit is contained in:
commit
f86bc9bdbd
@ -8,18 +8,30 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "frozendict";
|
||||
version = "2.3.8";
|
||||
version = "2.3.9";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Marco-Sulla";
|
||||
repo = "python-frozendict";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-4a0DvZOzNJqpop7wi+FagUR+8oaekz4EDNIYdUaAWC8=";
|
||||
hash = "sha256-wVsTsUK6TES6YLGZGcHcGufrdVQrODyXrqczae8iTJ0=";
|
||||
};
|
||||
|
||||
# build C version if it exists
|
||||
preBuild = ''
|
||||
version_str=$(python -c 'import sys; print("_".join(map(str, sys.version_info[:2])))')
|
||||
if test -f src/frozendict/c_src/$version_str/frozendictobject.c; then
|
||||
export CIBUILDWHEEL=1
|
||||
export FROZENDICT_PURE_PY=0
|
||||
else
|
||||
export CIBUILDWHEEL=0
|
||||
export FROZENDICT_PURE_PY=1
|
||||
fi
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
@ -28,15 +40,6 @@ buildPythonPackage rec {
|
||||
"frozendict"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
pushd test
|
||||
'';
|
||||
|
||||
disabledTests = lib.optionals (pythonAtLeast "3.11") [
|
||||
# https://github.com/Marco-Sulla/python-frozendict/issues/68
|
||||
"test_c_extension"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Module for immutable dictionary";
|
||||
homepage = "https://github.com/Marco-Sulla/python-frozendict";
|
||||
|
Loading…
Reference in New Issue
Block a user