8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
56 lines
1.2 KiB
Nix
56 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, setuptools-scm
|
|
, pythonOlder
|
|
, pythonRelaxDepsHook
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pytest-xdist
|
|
, numpy
|
|
, numba
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "galois";
|
|
version = "0.3.7";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mhostetter";
|
|
repo = "galois";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-dWYnD+Byh0orRg20/nhu8ILooFBeHysxQ403boDVqYk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
numba
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-xdist
|
|
];
|
|
|
|
pythonRelaxDeps = [ "numpy" "numba" ];
|
|
|
|
pythonImportsCheck = [ "galois" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python package that extends NumPy arrays to operate over finite fields";
|
|
homepage = "https://github.com/mhostetter/galois";
|
|
changelog = "https://github.com/mhostetter/galois/releases/tag/v${version}";
|
|
downloadPage = "https://github.com/mhostetter/galois/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ chrispattison ];
|
|
};
|
|
}
|