diff options
author | 0x4A6F <0x4A6F@users.noreply.github.com> | 2022-01-15 09:52:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 09:52:21 +0100 |
commit | 3cbdd13b11d040e5a660cb9ed2c754c4e9717a6c (patch) | |
tree | 2f239e25bdefa20e694e740505c489135068ee0e /pkgs/development | |
parent | fd5df0ef5b644c80f2ff0c972d15f05316dc6b71 (diff) | |
parent | ab58c31ecb3ebf597f63e30ce34e80f3da87c0e0 (diff) | |
download | nixpkgs-3cbdd13b11d040e5a660cb9ed2c754c4e9717a6c.tar nixpkgs-3cbdd13b11d040e5a660cb9ed2c754c4e9717a6c.tar.gz nixpkgs-3cbdd13b11d040e5a660cb9ed2c754c4e9717a6c.tar.bz2 nixpkgs-3cbdd13b11d040e5a660cb9ed2c754c4e9717a6c.tar.lz nixpkgs-3cbdd13b11d040e5a660cb9ed2c754c4e9717a6c.tar.xz nixpkgs-3cbdd13b11d040e5a660cb9ed2c754c4e9717a6c.tar.zst nixpkgs-3cbdd13b11d040e5a660cb9ed2c754c4e9717a6c.zip |
Merge pull request #151364 from matthiasbeyer/add-timetagger
Add timetagger
Diffstat (limited to 'pkgs/development')
4 files changed, 144 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/asgineer/default.nix b/pkgs/development/python-modules/asgineer/default.nix new file mode 100644 index 00000000000..3a1861bbd18 --- /dev/null +++ b/pkgs/development/python-modules/asgineer/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, requests +}: + +buildPythonPackage rec { + pname = "asgineer"; + version = "0.8.1"; + + # PyPI tarball doesn't include tests directory + src = fetchFromGitHub { + owner = "almarklein"; + repo = pname; + rev = "v${version}"; + sha256 = "0hd1i9pc8m7sc8bkn31q4ygkmnl5vklrcziq9zkdiqaqm8clyhcx"; + }; + + checkInputs = [ + pytestCheckHook + requests + ]; + + meta = with lib; { + description = "A really thin ASGI web framework"; + license = licenses.bsd2; + homepage = "https://asgineer.readthedocs.io"; + maintainers = [ maintainers.matthiasbeyer ]; + }; +} + diff --git a/pkgs/development/python-modules/itemdb/default.nix b/pkgs/development/python-modules/itemdb/default.nix new file mode 100644 index 00000000000..f9afc4c5cb3 --- /dev/null +++ b/pkgs/development/python-modules/itemdb/default.nix @@ -0,0 +1,26 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +}: + +buildPythonPackage rec { + pname = "itemdb"; + version = "1.1.1"; + + # PyPI tarball doesn't include tests directory + src = fetchFromGitHub { + owner = "almarklein"; + repo = pname; + rev = "v${version}"; + sha256 = "0ksad5j91nlbsn0a11clf994qz7r9ijand5hxnjhgd66i9hl3y78"; + }; + + meta = with lib; { + description = "Easy transactional database for Python dicts, backed by SQLite"; + license = licenses.bsd2; + homepage = "https://itemdb.readthedocs.io"; + maintainers = [ maintainers.matthiasbeyer ]; + }; +} + + diff --git a/pkgs/development/python-modules/pscript/default.nix b/pkgs/development/python-modules/pscript/default.nix new file mode 100644 index 00000000000..fae2c8a4281 --- /dev/null +++ b/pkgs/development/python-modules/pscript/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, nodejs +}: + +buildPythonPackage rec { + pname = "pscript"; + version = "0.7.6"; + + # PyPI tarball doesn't include tests directory + src = fetchFromGitHub { + owner = "flexxui"; + repo = pname; + rev = "v${version}"; + sha256 = "169px5n4jjnpdn9y86f28qwd95bwf1q1rz0a1h3lb5nn5c6ym8c4"; + }; + + checkInputs = [ + pytestCheckHook + nodejs + ]; + + preCheck = '' + # do not execute legacy tests + rm -rf pscript_legacy + ''; + + meta = with lib; { + description = "Python to JavaScript compiler"; + license = licenses.bsd2; + homepage = "https://pscript.readthedocs.io"; + maintainers = [ maintainers.matthiasbeyer ]; + }; +} + + + diff --git a/pkgs/development/python-modules/timetagger/default.nix b/pkgs/development/python-modules/timetagger/default.nix new file mode 100644 index 00000000000..58bf190495f --- /dev/null +++ b/pkgs/development/python-modules/timetagger/default.nix @@ -0,0 +1,47 @@ +{ lib +, python3Packages +, fetchFromGitHub +, pytestCheckHook +, requests +}: + +python3Packages.buildPythonPackage rec { + pname = "timetagger"; + version = "22.1.2"; + + src = fetchFromGitHub { + owner = "almarklein"; + repo = pname; + rev = "v${version}"; + sha256 = "0xrajx0iij7r70ch17m4y6ydyh368dn6nbjsv74pn1x8frd686rw"; + }; + + meta = with lib; { + homepage = "https://timetagger.app"; + license = licenses.gpl3; + description = "Tag your time, get the insight"; + maintainers = with maintainers; [ matthiasbeyer ]; + }; + + checkInputs = [ + pytestCheckHook + requests + ]; + + preCheck = '' + # https://github.com/NixOS/nixpkgs/issues/12591 + mkdir -p check-phase + export HOME=$(pwd)/check-phase + ''; + + propagatedBuildInputs = with python3Packages; [ + asgineer + itemdb + jinja2 + markdown + pscript + pyjwt + uvicorn + ]; + +} |