fava: init at 1.0

fixes #15785

authored by Matthias Beyer and committed by Jörg Thalheim 213ebc94 8a37554f

+47
+45
pkgs/applications/office/fava/default.nix
··· 1 + { stdenv, pkgs, fetchurl, python3Packages, fetchFromGitHub, fetchzip, python3, beancount }: 2 + 3 + python3Packages.buildPythonApplication rec { 4 + version = "1.0"; 5 + name = "fava-${version}"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "aumayr"; 9 + repo = "fava"; 10 + rev = "v${version}"; 11 + sha256 = "0dm4x6z80m04r9qa55psvz7f41qnh13hnj2qhvxkrk22yqmkqrka"; 12 + }; 13 + 14 + assets = fetchzip { 15 + url = "https://github.com/aumayr/fava/releases/download/v${version}/beancount-fava-${version}.tar.gz"; 16 + sha256 = "1vvidwfn5882dslz6qqkkd84m7w52kd34x10qph8yhipyjv1dimc"; 17 + }; 18 + 19 + buildInputs = with python3Packages; [ pytest_30 ]; 20 + 21 + checkPhase = '' 22 + # pyexcel is optional 23 + # the other 2 tests fail due non-unicode locales 24 + PATH=$out/bin:$PATH pytest tests \ 25 + --ignore tests/test_util_excel.py \ 26 + --ignore tests/test_cli.py \ 27 + --ignore tests/test_translations.py \ 28 + ''; 29 + 30 + postInstall = '' 31 + cp -r $assets/fava/static/gen $out/${python3.sitePackages}/fava/static 32 + ''; 33 + 34 + propagatedBuildInputs = with python3Packages; 35 + [ flask dateutil pygments wheel markdown2 flaskbabel tornado 36 + click beancount ]; 37 + 38 + meta = { 39 + homepage = https://github.com/aumayr/fava; 40 + description = "Web interface for beancount"; 41 + license = stdenv.lib.licenses.mit; 42 + maintainers = with stdenv.lib.maintainers; [ matthiasbeyer ]; 43 + }; 44 + } 45 +
+2
pkgs/top-level/all-packages.nix
··· 15469 15469 15470 15470 fairymax = callPackage ../games/fairymax {}; 15471 15471 15472 + fava = callPackage ../applications/office/fava {}; 15473 + 15472 15474 fish-fillets-ng = callPackage ../games/fish-fillets-ng {}; 15473 15475 15474 15476 flightgear = qt5.callPackage ../games/flightgear { };