Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 31 lines 752 B view raw
1{ 2 lib, 3 python3Packages, 4 fetchurl, 5}: 6 7python3Packages.buildPythonApplication rec { 8 pname = "nvmet-cli"; 9 version = "0.7"; 10 format = "setuptools"; 11 12 src = fetchurl { 13 url = "ftp://ftp.infradead.org/pub/nvmetcli/nvmetcli-${version}.tar.gz"; 14 sha256 = "051y1b9w46azy35118154c353v3mhjkdzh6h59brdgn5054hayj2"; 15 }; 16 17 buildInputs = with python3Packages; [ nose2 ]; 18 19 propagatedBuildInputs = with python3Packages; [ configshell-fb ]; 20 21 # This package requires the `nvmet` kernel module to be loaded for tests. 22 doCheck = false; 23 24 meta = with lib; { 25 description = "NVMe target CLI"; 26 mainProgram = "nvmetcli"; 27 license = licenses.asl20; 28 platforms = platforms.linux; 29 maintainers = with maintainers; [ hoverbear ]; 30 }; 31}