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