Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 beancount, 4 click, 5 buildPythonPackage, 6 fetchFromGitHub, 7 python-dateutil, 8 pytestCheckHook, 9 setuptools, 10 tatsu-lts, 11}: 12buildPythonPackage rec { 13 pname = "beanquery"; 14 version = "0.2.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "beancount"; 19 repo = "beanquery"; 20 tag = "v${version}"; 21 hash = "sha256-O7+WCF7s50G14oNTvJAOTvgSoNR9fWcn/m1jv7RHmK8="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 beancount 28 click 29 python-dateutil 30 tatsu-lts 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ 36 "beanquery" 37 ]; 38 39 meta = with lib; { 40 homepage = "https://github.com/beancount/beanquery"; 41 description = "Beancount Query Language"; 42 longDescription = '' 43 A customizable light-weight SQL query tool that works on tabular data, 44 including Beancount. 45 ''; 46 license = licenses.gpl2Only; 47 maintainers = with maintainers; [ alapshin ]; 48 mainProgram = "bean-query"; 49 }; 50}