1{ lib 2, buildPythonPackage 3, fetchPypi 4, pretend 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "verspec"; 11 version = "0.1.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-xFBMppeyBWzbS/pxIUYfWg6BgJJVtBwD3aS6gjY3wB4="; 19 }; 20 21 nativeCheckInputs = [ 22 pretend 23 pytestCheckHook 24 ]; 25 26 disabledTestPaths = [ 27 # Import fail 28 "test/test_specifiers.py" 29 ]; 30 31 pythonImportsCheck = [ 32 "verspec" 33 ]; 34 35 meta = with lib; { 36 description = "Flexible version handling"; 37 homepage = "https://github.com/jimporter/verspec"; 38 changelog = "https://github.com/jimporter/averspec/releases/tag/v${version}"; 39 license = with licenses; [ bsd2 /* and */ asl20 ]; 40 maintainers = with maintainers; [ marsam ]; 41 }; 42}