Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 1.1 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5}: 6 7python3Packages.buildPythonApplication rec { 8 pname = "beanprice"; 9 version = "2.0.0"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "beancount"; 14 repo = "beanprice"; 15 tag = "v${version}"; 16 hash = "sha256-+bqYnTzZByJlCPUhThM2B9UjgdWzjF21Yiw3fQAZ6k4="; 17 }; 18 19 build-system = with python3Packages; [ setuptools ]; 20 21 dependencies = with python3Packages; [ 22 beancount 23 python-dateutil 24 regex 25 requests 26 ]; 27 28 nativeCheckInputs = with python3Packages; [ 29 click 30 pytestCheckHook 31 regex 32 ]; 33 34 pythonImportsCheck = [ "beanprice" ]; 35 36 meta = { 37 broken = lib.versionOlder python3Packages.beancount.version "3"; 38 homepage = "https://github.com/beancount/beanprice"; 39 description = "Price quotes fetcher for Beancount"; 40 longDescription = '' 41 A script to fetch market data prices from various sources on the internet 42 and render them for plain text accounting price syntax (and Beancount). 43 ''; 44 license = lib.licenses.gpl2Only; 45 maintainers = with lib.maintainers; [ alapshin ]; 46 mainProgram = "bean-price"; 47 }; 48}