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
730 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";
2022-10-28 22:44:24 +00:00
version = "0.3.1";
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;
2022-06-01 08:28:14 +00:00
rev = "refs/tags/${version}";
2022-10-28 22:44:24 +00:00
hash = "sha256-lb4awMQ7GE7m2N2yiCpJ976I2j8hE98/93zCX7Rp4qU=";
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 ];
};
}