Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 956 B view raw
1{ lib 2, baseline 3, buildPythonPackage 4, fetchFromGitLab 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "plum-py"; 11 version = "0.8.6"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitLab { 17 owner = "dangass"; 18 repo = "plum"; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-gZSRqijKdjqOZe1+4aeycpCPsh6HC5sRbyVjgK+g4wM="; 21 }; 22 23 postPatch = '' 24 # Drop broken version specifier 25 sed -i "/python_requires =/d" setup.cfg 26 ''; 27 28 nativeCheckInputs = [ 29 baseline 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "plum" 35 ]; 36 37 pytestFlagsArray = [ 38 "tests" 39 ]; 40 41 meta = with lib; { 42 description = "Classes and utilities for packing/unpacking bytes"; 43 homepage = "https://plum-py.readthedocs.io/"; 44 changelog = "https://gitlab.com/dangass/plum/-/blob/${version}/docs/release_notes.rst"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ dnr ]; 47 }; 48}