1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pretend 5, pyparsing 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "packvers"; 12 version = "21.5"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "nexB"; 19 repo = pname; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-nCSYL0g7mXi9pGFt24pOXbmmYsaRuB+rRZrygf8DTLE="; 22 }; 23 24 propagatedBuildInputs = [ 25 pyparsing 26 ]; 27 28 nativeCheckInputs = [ 29 pretend 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "packvers" 35 ]; 36 37 meta = with lib; { 38 description = "Module for version handling of modules"; 39 homepage = "https://github.com/nexB/dparse2"; 40 changelog = "https://github.com/nexB/packvers/blob/${version}/CHANGELOG.rst"; 41 license = with licenses; [ asl20 /* and */ bsd2 ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}