1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, packaging 5, pytestCheckHook 6, pythonOlder 7, setuptools-scm 8}: 9 10buildPythonPackage rec { 11 pname = "pip-requirements-parser"; 12 version = "31.2.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "nexB"; 19 repo = pname; 20 rev = "v${version}"; 21 hash = "sha256-i4hw3tS4i2ek2JzcDiGo5aFFJ9J2JJ9MB5vxDhOilb0="; 22 }; 23 24 SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 dontConfigure = true; 27 28 nativeBuildInputs = [ 29 setuptools-scm 30 ]; 31 32 propagatedBuildInputs = [ 33 packaging 34 ]; 35 36 checkInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "pip_requirements_parser" 42 ]; 43 44 meta = with lib; { 45 description = "Module to parse pip requirements"; 46 homepage = "https://github.com/nexB/pip-requirements-parser"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}