python3Packages.intbitset: 2.4.1 -> 3.0.0

main
Martin Weinelt 2 years ago
parent 06cae9aa95
commit e31838f0e3
  1. 25
      pkgs/development/python-modules/intbitset/default.nix
  2. 24
      pkgs/development/python-modules/intbitset/remove-impure-tuning.patch

@ -1,36 +1,23 @@
{ lib
, fetchPypi
, buildPythonPackage
, six
, nose
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "intbitset";
version = "2.4.1";
version = "3.0.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "44bca80b8cc702d5a56f0686f2bb5e028ab4d0c2c1761941589d46b7fa2c701c";
sha256 = "sha256-tDG3CAlTZvz9Pi2pLq0TEPhl3DyYuWQS1N6VNNNokEE=";
};
patches = [
# fixes compilation on aarch64 and determinism (uses -march=core2 and
# -mtune=native)
./remove-impure-tuning.patch
];
propagatedBuildInputs = [
six
];
checkInputs = [
nose
pytestCheckHook
];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [
"intbitset"
];

@ -1,24 +0,0 @@
From 2ea60bdf4d7b0344fc6ff5c97c675842fedccfa8 Mon Sep 17 00:00:00 2001
From: Cole Helbling <cole.e.helbling@outlook.com>
Date: Fri, 23 Apr 2021 09:02:22 -0700
Subject: [PATCH] setup.py: remove impure tuning
---
setup.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/setup.py b/setup.py
index 7840022..3922aa5 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,6 @@ setup(
ext_modules=[
Extension("intbitset",
["intbitset/intbitset.c", "intbitset/intbitset_impl.c"],
- extra_compile_args=['-O3', '-march=core2', '-mtune=native']
# For debug -> '-ftree-vectorizer-verbose=2'
)
],
--
2.30.1
Loading…
Cancel
Save