2020-06-08 03:39:06 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, attrs
|
|
|
|
, colorlog
|
|
|
|
, csvw
|
2021-07-03 13:37:24 +02:00
|
|
|
, python-dateutil
|
2020-06-08 03:39:06 +02:00
|
|
|
, tabulate
|
|
|
|
, mock
|
|
|
|
, postgresql
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clldutils";
|
2021-06-03 20:08:38 +02:00
|
|
|
version = "3.9.0";
|
2020-06-08 03:39:06 +02:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clld";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-03 20:08:38 +02:00
|
|
|
sha256 = "07ljq7v1zvaxyl6xn4a2p4097lgd5j9bz71lf05y5bz8k024mxbr";
|
2020-06-08 03:39:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace setup.cfg --replace "--cov" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-07-03 13:37:24 +02:00
|
|
|
python-dateutil
|
2020-06-08 03:39:06 +02: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-03 20:36:37 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-06-08 03:39:06 +02:00
|
|
|
};
|
|
|
|
}
|