depot/third_party/nixpkgs/pkgs/development/python-modules/linien-common/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

60 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
importlib-metadata,
numpy,
rpyc,
scipy,
appdirs,
callPackage,
}:
buildPythonPackage rec {
pname = "linien-common";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "linien-org";
repo = "linien";
rev = "refs/tags/v${version}";
hash = "sha256-j6oiP/usLfV5HZtKLcXQ5pHhhxRG05kP2FMwingiWm0=";
};
sourceRoot = "${src.name}/linien-common";
preBuild = ''
export HOME=$(mktemp -d)
'';
build-system = [ setuptools ];
pythonRelaxDeps = [ "importlib-metadata" ];
dependencies = [
importlib-metadata
numpy
rpyc
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";
changelog = "https://github.com/linien-org/linien/blob/v${version}/CHANGELOG.md";
license = licenses.gpl3Plus;
maintainers = with maintainers; [
fsagbuya
doronbehar
];
};
}