2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, python
|
2020-06-15 15:56:04 +00:00
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "iniparse";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "932e5239d526e7acb504017bb707be67019ac428a6932368e6851691093aa842";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} runtests.py
|
|
|
|
'';
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# Does not install tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Accessing and Modifying INI files";
|
|
|
|
homepage = "https://github.com/candlepin/python-iniparse";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ danbst ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|