Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 60 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 importlib-metadata, 7 numpy, 8 rpyc, 9 scipy, 10 appdirs, 11 callPackage, 12}: 13 14buildPythonPackage rec { 15 pname = "linien-common"; 16 version = "2.1.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "linien-org"; 21 repo = "linien"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-j6oiP/usLfV5HZtKLcXQ5pHhhxRG05kP2FMwingiWm0="; 24 }; 25 26 sourceRoot = "${src.name}/linien-common"; 27 28 preBuild = '' 29 export HOME=$(mktemp -d) 30 ''; 31 32 build-system = [ setuptools ]; 33 34 pythonRelaxDeps = [ "importlib-metadata" ]; 35 36 dependencies = [ 37 importlib-metadata 38 numpy 39 rpyc 40 scipy 41 appdirs 42 ]; 43 44 pythonImportsCheck = [ "linien_common" ]; 45 46 passthru.tests = { 47 pytest = callPackage ./tests.nix { }; 48 }; 49 50 meta = with lib; { 51 description = "Shared components of the Linien spectroscopy lock application"; 52 homepage = "https://github.com/linien-org/linien/tree/develop/linien-common"; 53 changelog = "https://github.com/linien-org/linien/blob/v${version}/CHANGELOG.md"; 54 license = licenses.gpl3Plus; 55 maintainers = with maintainers; [ 56 fsagbuya 57 doronbehar 58 ]; 59 }; 60}