summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-06-01 15:42:07 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-06-01 14:28:41 +0000
commitcff8ae568806200e2484ef7017e8fae322aef26f (patch)
treeb06819da641ee1ae344a030c6191f2583ec7662b
parentpython310Packages.sdds: 0.2.1 -> 0.3.0 (diff)
downloadnixpkgs-origin/backport-175711-to-release-22.05.tar.gz
python310Packages.sdds: disable on older Python releasesorigin/backport-175711-to-release-22.05
(cherry picked from commit 3a15f059278768e6920a27d1fd85a80f4917c693)
-rw-r--r--pkgs/development/python-modules/sdds/default.nix20
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/sdds/default.nix b/pkgs/development/python-modules/sdds/default.nix
index 6970bcad4096..fa4493916410 100644
--- a/pkgs/development/python-modules/sdds/default.nix
+++ b/pkgs/development/python-modules/sdds/default.nix
@@ -3,6 +3,7 @@
, fetchFromGitHub
, numpy
, pytestCheckHook
+, pythonOlder
}:
buildPythonPackage rec {
@@ -10,20 +11,29 @@ buildPythonPackage rec {
version = "0.3.0";
format = "setuptools";
+ disabled = pythonOlder "3.7";
+
src = fetchFromGitHub {
owner = "pylhc";
repo = pname;
rev = "refs/tags/${version}";
- sha256 = "sha256-l9j+YJ5VNMzL6JW59kq0hQS7XIj53UxW5bNnfdURz/o=";
+ hash = "sha256-l9j+YJ5VNMzL6JW59kq0hQS7XIj53UxW5bNnfdURz/o=";
};
- propagatedBuildInputs = [ numpy ];
+ propagatedBuildInputs = [
+ numpy
+ ];
+
+ checkInputs = [
+ pytestCheckHook
+ ];
- pythonImportsCheck = [ "sdds" ];
- checkInputs = [ pytestCheckHook ];
+ pythonImportsCheck = [
+ "sdds"
+ ];
meta = with lib; {
- description = "Python 3 package to handle SDDS files";
+ description = "Module to handle SDDS files";
homepage = "https://pylhc.github.io/sdds/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ veprbl ];