mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
python3.pkgs.intbitset: init at 2.4.1
This commit is contained in:
parent
b5a2cf2123
commit
20d7a471d1
44
pkgs/development/python-modules/intbitset/default.nix
Normal file
44
pkgs/development/python-modules/intbitset/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, six
|
||||
, nose
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "intbitset";
|
||||
version = "2.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "44bca80b8cc702d5a56f0686f2bb5e028ab4d0c2c1761941589d46b7fa2c701c";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fixes compilation on aarch64 and determinism (uses -march=core2 and
|
||||
# -mtune=native)
|
||||
./remove-impure-tuning.patch
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"intbitset"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "C-based extension implementing fast integer bit sets";
|
||||
homepage = "https://github.com/inveniosoftware/intbitset";
|
||||
license = licenses.lgpl3Only;
|
||||
maintainers = teams.determinatesystems.members;
|
||||
};
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
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
|
||||
|
@ -3395,6 +3395,8 @@ in {
|
||||
|
||||
intake = callPackage ../development/python-modules/intake { };
|
||||
|
||||
intbitset = callPackage ../development/python-modules/intbitset { };
|
||||
|
||||
intelhex = callPackage ../development/python-modules/intelhex { };
|
||||
|
||||
internetarchive = callPackage ../development/python-modules/internetarchive { };
|
||||
|
Loading…
Reference in New Issue
Block a user