23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, importlib-metadata
|
|
, numpy
|
|
, rpyc4
|
|
, scipy
|
|
, appdirs
|
|
, callPackage
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "linien-common";
|
|
version = "1.0.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linien-org";
|
|
repo = "linien";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ZgAp1SEiHijyjK74VZyRLYY3Hzfc3BQ6cnoO3hZzvbE=";
|
|
};
|
|
|
|
sourceRoot = "source/linien-common";
|
|
|
|
preBuild = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
importlib-metadata
|
|
numpy
|
|
rpyc4
|
|
scipy
|
|
appdirs
|
|
];
|
|
|
|
pythonImportsCheck = [ "linien_common" ];
|
|
|
|
passthru.tests = {
|
|
pytest = callPackage ./tests.nix { };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Shared components of the Linien spectroscopy lock application";
|
|
homepage = "https://github.com/linien-org/linien/tree/develop/linien-common";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ fsagbuya doronbehar ];
|
|
};
|
|
}
|