Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 42 lines 888 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7 flake8, 8 structlog, 9}: 10 11buildPythonPackage rec { 12 pname = "logassert"; 13 version = "8.5"; 14 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "facundobatista"; 19 repo = "logassert"; 20 tag = version; 21 hash = "sha256-77oP7NE1fK1pA6baTHoSbfR7kR4URSmSpZSCgFO5Pb4="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 pythonImportsCheck = [ "logassert" ]; 27 28 nativeCheckInputs = [ 29 flake8 30 pytestCheckHook 31 structlog 32 ]; 33 34 meta = { 35 description = "Simple Log Assertion mechanism for Python unittests"; 36 homepage = "https://github.com/facundobatista/logassert"; 37 changelog = "https://github.com/facundobatista/logassert/releases/tag/${src.tag}"; 38 license = lib.licenses.lgpl3Only; 39 maintainers = with lib.maintainers; [ jnsgruk ]; 40 platforms = lib.platforms.linux; 41 }; 42}