Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 63 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, cryptography, jinja2, mako, passlib, pytest, pyyaml, requests, rtoml, setuptools, tomlkit, librouteros, pytestCheckHook,}:
buildPythonPackage rec { pname = "bundlewrap"; version = "4.19.0"; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "bundlewrap"; repo = "bundlewrap"; rev = "refs/tags/${version}"; hash = "sha256-sNdtJRpP54xlkYis4whoGiJJ/Tjnrs4TW6EO3eAMBAo="; };
nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ setuptools cryptography jinja2 mako passlib pyyaml requests tomlkit librouteros ] ++ lib.optionals (pythonOlder "3.11") [ rtoml ];
pythonImportsCheck = [ "bundlewrap" ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ # only unit tests as integration tests need a OpenSSH client/server setup "tests/unit" ];
meta = with lib; { homepage = "https://bundlewrap.org/"; description = "Easy, Concise and Decentralized Config management with Python"; mainProgram = "bw"; license = [ licenses.gpl3 ]; maintainers = with maintainers; [ wamserma ]; };}