2020-06-08 02:39:06 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
|
|
|
, attrs
|
|
|
|
, colorlog
|
|
|
|
, csvw
|
|
|
|
, dateutil
|
|
|
|
, tabulate
|
|
|
|
, mock
|
|
|
|
, postgresql
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clldutils";
|
2021-04-23 00:20:00 +01:00
|
|
|
version = "3.8.0";
|
2020-06-08 02:39:06 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "clld";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-23 00:20:00 +01:00
|
|
|
sha256 = "18sjcqzprf96s7bkn5zm3lh83hxfxj56nycxyldrwz7ndgkgxxx2";
|
2020-06-08 02:39:06 +01: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;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|