2021-07-24 12:14:16 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, six, pytest-cov, pytest }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "1.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "dockerfile-parse";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "07e65eec313978e877da819855870b3ae47f3fac94a40a965b9ede10484dacc5";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
echo " " > tests/requirements.txt \
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytest-cov pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python library for parsing Dockerfile files";
|
|
|
|
homepage = "https://github.com/DBuildService/dockerfile-parse";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|