2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage
|
2018-05-10 01:52:22 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, six
|
|
|
|
, mock, pytest
|
|
|
|
}:
|
2018-03-31 18:23:04 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "configobj";
|
|
|
|
version = "5.0.6";
|
|
|
|
|
2018-05-10 01:52:22 +01:00
|
|
|
# Pypi archives don't contain the tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DiffSK";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0x97794nk3dfn0i3si9fv7y19jnpnarb34bkdwlz7ii7ag6xihhw";
|
2018-03-31 18:23:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
2018-05-10 01:52:22 +01:00
|
|
|
checkPhase = ''
|
|
|
|
pytest --deselect=tests/test_configobj.py::test_options_deprecation
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ mock pytest ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-03-31 18:23:04 +01:00
|
|
|
description = "Config file reading, writing and validation";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/configobj";
|
2018-03-31 18:23:04 +01:00
|
|
|
license = licenses.bsd3;
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-03-31 18:23:04 +01:00
|
|
|
};
|
|
|
|
}
|