2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, attrs
|
|
|
|
, colorlog
|
|
|
|
, csvw
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2020-09-25 04:45:31 +00:00
|
|
|
, tabulate
|
|
|
|
, mock
|
|
|
|
, postgresql
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clldutils";
|
2021-06-06 07:54:09 +00:00
|
|
|
version = "3.9.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clld";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-06 07:54:09 +00:00
|
|
|
sha256 = "07ljq7v1zvaxyl6xn4a2p4097lgd5j9bz71lf05y5bz8k024mxbr";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace setup.cfg --replace "--cov" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2020-09-25 04:45:31 +00:00
|
|
|
tabulate
|
|
|
|
colorlog
|
|
|
|
attrs
|
|
|
|
csvw
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
postgresql
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CSV on the Web";
|
|
|
|
homepage = "https://github.com/cldf/csvw";
|
|
|
|
license = licenses.asl20;
|
2021-06-06 07:54:09 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|