python3Packages.galois: init at 0.0.32

This commit is contained in:
Chris Pattison 2022-08-10 10:45:16 +02:00
parent c05574e0cb
commit 70749cfe65
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
, pytest-xdist
, numpy
, numba
, typing-extensions
}:
buildPythonPackage rec {
pname = "galois";
version = "0.0.32";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mhostetter";
repo = "galois";
rev = "refs/tags/v${version}";
sha256 = "sha256-+cxRLrfqk3N9pWKCVsTxruZwMYZ5dQyKJRnrb8y+ECM=";
};
propagatedBuildInputs = [
numpy
numba
typing-extensions
];
checkInputs = [
pytestCheckHook
pytest-xdist
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "numpy >= 1.18.4, < 1.23" "numpy >= 1.18.4"
'';
pythonImportsCheck = [ "galois" ];
meta = {
description = "A Python 3 package that extends NumPy arrays to operate over finite fields";
homepage = "https://github.com/mhostetter/galois";
downloadPage = "https://github.com/mhostetter/galois/releases";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ chrispattison ];
};
}

View File

@ -3438,6 +3438,8 @@ in {
pythonPackages = self;
});
galois = callPackage ../development/python-modules/galois { };
gamble = callPackage ../development/python-modules/gamble { };
gaphas = callPackage ../development/python-modules/gaphas { };