nixpkgs/pkgs/development/python-modules/sdds/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
731 B
Nix
Raw Normal View History

2022-05-06 21:18:52 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, numpy
, pytestCheckHook
, pythonOlder
2022-05-06 21:18:52 +00:00
}:
buildPythonPackage rec {
pname = "sdds";
2023-09-07 18:54:25 +00:00
version = "0.4.0";
2022-05-06 21:18:52 +00:00
format = "setuptools";
disabled = pythonOlder "3.7";
2022-05-06 21:18:52 +00:00
src = fetchFromGitHub {
owner = "pylhc";
repo = pname;
2023-09-07 18:54:25 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-8tnJAptTUsC0atxM9Dpn90drcprdWrs8fYoX8RDkLyQ=";
2022-05-06 21:18:52 +00:00
};
propagatedBuildInputs = [
numpy
];
nativeCheckInputs = [
pytestCheckHook
];
2022-05-06 21:18:52 +00:00
pythonImportsCheck = [
"sdds"
];
2022-05-06 21:18:52 +00:00
meta = with lib; {
description = "Module to handle SDDS files";
2022-05-06 21:18:52 +00:00
homepage = "https://pylhc.github.io/sdds/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ veprbl ];
};
}