Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 53 lines 854 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, attrs 6, colorlog 7, csvw 8, dateutil 9, tabulate 10, mock 11, postgresql 12, pytestCheckHook 13, pytest-mock 14}: 15 16buildPythonPackage rec { 17 pname = "clldutils"; 18 version = "3.8.0"; 19 disabled = isPy27; 20 21 src = fetchFromGitHub { 22 owner = "clld"; 23 repo = pname; 24 rev = "v${version}"; 25 sha256 = "18sjcqzprf96s7bkn5zm3lh83hxfxj56nycxyldrwz7ndgkgxxx2"; 26 }; 27 28 patchPhase = '' 29 substituteInPlace setup.cfg --replace "--cov" "" 30 ''; 31 32 propagatedBuildInputs = [ 33 dateutil 34 tabulate 35 colorlog 36 attrs 37 csvw 38 ]; 39 40 checkInputs = [ 41 mock 42 postgresql 43 pytestCheckHook 44 pytest-mock 45 ]; 46 47 meta = with lib; { 48 description = "CSV on the Web"; 49 homepage = "https://github.com/cldf/csvw"; 50 license = licenses.asl20; 51 maintainers = with maintainers; [ hexa ]; 52 }; 53}