Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 830 B view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitLab, 5 vkbasalt, 6}: 7 8python3Packages.buildPythonApplication rec { 9 pname = "vkbasalt-cli"; 10 version = "3.1.1"; 11 pyproject = true; 12 13 src = fetchFromGitLab { 14 owner = "TheEvilSkeleton"; 15 repo = "vkbasalt-cli"; 16 rev = "v${version}"; 17 hash = "sha256-4MFqndnvwAsqyer9kMNuCZFP/Xdl7W//AyCe7n83328="; 18 }; 19 20 postPatch = '' 21 substituteInPlace vkbasalt/lib.py \ 22 --replace-fail /usr ${vkbasalt} 23 ''; 24 25 build-system = with python3Packages; [ setuptools ]; 26 27 pythonImportsCheck = [ "vkbasalt.lib" ]; 28 29 meta = with lib; { 30 description = "Command-line utility for vkBasalt"; 31 homepage = "https://gitlab.com/TheEvilSkeleton/vkbasalt-cli"; 32 license = with licenses; [ 33 lgpl3Only 34 gpl3Only 35 ]; 36 maintainers = [ ]; 37 mainProgram = "vkbasalt"; 38 }; 39}