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