Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 48 lines 985 B view raw
1{ lib 2, python3Packages 3, fetchFromGitHub 4, nixosTests 5}: 6 7python3Packages.buildPythonApplication rec { 8 pname = "stratis-cli"; 9 version = "3.5.3"; 10 format = "pyproject"; 11 12 src = fetchFromGitHub { 13 owner = "stratis-storage"; 14 repo = pname; 15 rev = "v${version}"; 16 hash = "sha256-YoPi2AtP6qZPMrlxbDAD0sDEKrSBHLLRcHbNLxlXXCk="; 17 }; 18 19 propagatedBuildInputs = with python3Packages; [ 20 psutil 21 python-dateutil 22 wcwidth 23 justbytes 24 dbus-client-gen 25 dbus-python-client-gen 26 packaging 27 ]; 28 29 nativeCheckInputs = with python3Packages; [ 30 pytestCheckHook 31 ]; 32 33 disabledTestPaths = [ 34 # tests below require dbus daemon 35 "tests/whitebox/integration" 36 ]; 37 38 pythonImportsCheck = [ "stratis_cli" ]; 39 40 passthru.tests = nixosTests.stratis; 41 42 meta = with lib; { 43 description = "CLI for the Stratis project"; 44 homepage = "https://stratis-storage.github.io"; 45 license = licenses.asl20; 46 maintainers = with maintainers; [ nickcao ]; 47 }; 48}