1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "dockerfile-parse"; 11 version = "2.0.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-MYTM3FEyIZg+UDrADhqlBKKqj4Tl3mc8RrC27umex7w="; 19 }; 20 21 nativeCheckInputs = [ pytestCheckHook ]; 22 23 pythonImportsCheck = [ "dockerfile_parse" ]; 24 25 disabledTests = [ 26 # python-dockerfile-parse.spec is not present 27 "test_all_versions_match" 28 ]; 29 30 meta = with lib; { 31 description = "Library for parsing Dockerfile files"; 32 homepage = "https://github.com/DBuildService/dockerfile-parse"; 33 changelog = "https://github.com/containerbuildsystem/dockerfile-parse/releases/tag/${version}"; 34 license = licenses.bsd3; 35 maintainers = with maintainers; [ leenaars ]; 36 }; 37}