nur-packages

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

commit 149297ea58d2f6567aa51ae12b3fe384ffe17252
parent 40900df40734f821207a5d1f5a2ba839eab087b3
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu,  2 Jun 2022 12:55:51 +0300

Add pyrobuf

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/osm/pyrobuf/default.nix | 28++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -355,6 +355,7 @@ lib.makeScope newScope ( osmwalkthrough = callPackage ./osm/osmwalkthrough { }; phyghtmap = callPackage ./osm/phyghtmap { }; polytiles = callPackage ./osm/polytiles { }; + pyrobuf = callPackage ./osm/pyrobuf { }; sdlmap = callPackage ./osm/sdlmap { }; smopy = callPackage ./osm/smopy { }; smrender = callPackage ./osm/smrender { diff --git a/pkgs/osm/pyrobuf/default.nix b/pkgs/osm/pyrobuf/default.nix @@ -0,0 +1,28 @@ +{ lib, python3Packages, fetchFromGitHub }: + +python3Packages.buildPythonPackage rec { + pname = "pyrobuf"; + version = "0.9.3"; + + src = fetchFromGitHub { + owner = "appnexus"; + repo = pname; + rev = "811a9325eed1c0070ceb424020fe81eeef317e0c"; + hash = "sha256-7NEzRM9B/9f5ODNzDKws7t/9gqbJK7T9AuET+pT26P0="; + }; + + nativeBuildInputs = with python3Packages; [ cython pytest-runner ]; + + propagatedBuildInputs = with python3Packages; [ + jinja2 + ]; + + checkInputs = with python3Packages; [ pytestCheckHook ]; + + meta = with lib; { + description = "A Cython based protobuf compiler"; + inherit (src.meta) homepage; + license = licenses.asl20; + maintainers = [ maintainers.sikmir ]; + }; +}