mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 14:04:52 +00:00
python3.pkgs.linear_operator: use setuptools-scm to get version (#250240)
This commit is contained in:
parent
f410499cb1
commit
5ff791b8fd
@ -2,9 +2,12 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, jaxtyping
|
, jaxtyping
|
||||||
, scipy
|
|
||||||
, torch
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, scipy
|
||||||
|
, setuptools
|
||||||
|
, setuptools-scm
|
||||||
|
, torch
|
||||||
|
, wheel
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -19,10 +22,13 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-7NkcvVDwFaLHBZZhq7aKY3cWxe90qeKmodP6cVsdrPM=";
|
hash = "sha256-7NkcvVDwFaLHBZZhq7aKY3cWxe90qeKmodP6cVsdrPM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace 'find_version("linear_operator", "version.py")' \"$version\"
|
nativeBuildInputs = [
|
||||||
'';
|
setuptools
|
||||||
|
setuptools-scm
|
||||||
|
wheel
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
jaxtyping
|
jaxtyping
|
||||||
@ -30,10 +36,12 @@ buildPythonPackage rec {
|
|||||||
torch
|
torch
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
pythonImportsCheck = [ "linear_operator" ];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
pythonImportsCheck = [ "linear_operator" ];
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# flaky numerical tests
|
# flaky numerical tests
|
||||||
"test_svd"
|
"test_svd"
|
||||||
|
Loading…
Reference in New Issue
Block a user