python3Packages.frozendict: 2.1.1 -> 2.1.3

This commit is contained in:
Jonathan Ringer
2022-01-13 16:58:20 -08:00
committed by Martin Weinelt
parent c4f55d19c9
commit 113346fed8

View File

@@ -8,21 +8,16 @@
buildPythonPackage rec {
pname = "frozendict";
version = "2.1.1";
version = "2.2.0";
format = "setuptools";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "655b879217dd445a2023e16154cc231febef802b5c812d5c2e822280ad69e1dc";
sha256 = "sha256-jj1HNfmhPRB3Vn5WhHFmPzJE+FrImyP4yzHPIx2+Rbk=";
};
postPatch = ''
# fixes build on non-x86_64 architectures
rm frozendict/src/3_9/cpython_src/Include/pyconfig.h
'';
pythonImportsCheck = [
"frozendict"
];
@@ -32,24 +27,12 @@ buildPythonPackage rec {
];
preCheck = ''
rm -r frozendict
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
pushd test
'';
disabledTests = [
# TypeError: unsupported operand type(s) for |=: 'frozendict.frozendict' and 'dict'
"test_union"
# non-standard assertions
"test_repr"
"test_format"
"test_str"
];
disabledTestPaths = [
# unpackaged test dependency: coold
"test/test_coold.py"
"test/test_coold_subclass.py"
];
postCheck = ''
popd
'';
meta = with lib; {
homepage = "https://github.com/slezica/python-frozendict";