diff --git a/pkgs/development/python-modules/dockerfile-parse/default.nix b/pkgs/development/python-modules/dockerfile-parse/default.nix new file mode 100644 index 000000000000..c8ecbceb5e86 --- /dev/null +++ b/pkgs/development/python-modules/dockerfile-parse/default.nix @@ -0,0 +1,26 @@ +{ stdenv, buildPythonPackage, fetchPypi, six, pytestcov, pytest }: + +buildPythonPackage rec { + version = "0.0.13"; + pname = "dockerfile-parse"; + + src = fetchPypi { + inherit pname version; + sha256 = "1p0x81q3m3nlj4rqal9a959xcbjhncb548wd4wr3l7dpiajqqc9c"; + }; + + postPatch = '' + echo " " > tests/requirements.txt \ + ''; + + propagatedBuildInputs = [ six ]; + + checkInputs = [ pytestcov pytest ]; + + meta = with stdenv.lib; { + description = "Python library for parsing Dockerfile files"; + homepage = https://github.com/DBuildService/dockerfile-parse; + license = licenses.bsd3; + maintainers = with maintainers; [ leenaars ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 96fe331e7488..9a837bca4654 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1745,6 +1745,8 @@ in { docker = callPackage ../development/python-modules/docker {}; + dockerfile-parse = callPackage ../development/python-modules/dockerfile-parse {}; + docker-py = disabledIf isPy27 (callPackage ../development/python-modules/docker-py {}); dockerpty = callPackage ../development/python-modules/dockerpty {};