nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 6eceaf096151553a230239b1491318cb3b7ba15d
parent 23639f6eaafda83d7cbaf2b8639f879b5ffa339f
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Sat, 28 Nov 2020 22:50:05 +0300

Add apibackuper

Diffstat:
Mnix/sources.json | 14++++++++++++++
Mpkgs/default.nix | 1+
Apkgs/tools/networking/apibackuper/default.nix | 19+++++++++++++++++++
3 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -1,4 +1,18 @@ { + "apibackuper": { + "branch": "master", + "builtin": false, + "date": "2020-11-03T14:35:02Z", + "description": "Python library and cmd tool to backup API calls", + "homepage": "https://github.com/ruarxive/apibackuper", + "owner": "ruarxive", + "repo": "apibackuper", + "rev": "1ff139f688d59b899ff041ccc282e224110ddc76", + "sha256": "01lwd958byqh3ly9f1n4rk8sq3mdjgydsw2il4mvblsmcid7pg84", + "type": "tarball", + "url": "https://github.com/ruarxive/apibackuper/archive/1ff139f688d59b899ff041ccc282e224110ddc76.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "bson": { "branch": "master", "builtin": false, diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -136,6 +136,7 @@ lib.makeScope newScope ( ### TOOLS + apibackuper = callPackage ./tools/networking/apibackuper { }; cfiles = callPackage ./tools/cfiles { }; cgpsmapper = callPackage ./tools/geo/cgpsmapper { }; csvquote = callPackage ./tools/text/csvquote { }; diff --git a/pkgs/tools/networking/apibackuper/default.nix b/pkgs/tools/networking/apibackuper/default.nix @@ -0,0 +1,19 @@ +{ lib, python3Packages, bson, sources }: + +python3Packages.buildPythonApplication { + pname = "apibackuper-unstable"; + version = lib.substring 0 10 sources.apibackuper.date; + + src = sources.apibackuper; + + propagatedBuildInputs = with python3Packages; [ bson click lxml requests xmltodict ]; + + doCheck = false; + + meta = with lib; { + inherit (sources.apibackuper) description homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}