nur-packages

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

default.nix (837B)


      1 {
      2   lib,
      3   python3Packages,
      4   fetchFromGitHub,
      5 }:
      6 
      7 python3Packages.buildPythonPackage {
      8   pname = "pyrobuf";
      9   version = "0.9.3";
     10 
     11   src = fetchFromGitHub {
     12     owner = "appnexus";
     13     repo = "pyrobuf";
     14     rev = "811a9325eed1c0070ceb424020fe81eeef317e0c";
     15     hash = "sha256-7NEzRM9B/9f5ODNzDKws7t/9gqbJK7T9AuET+pT26P0=";
     16   };
     17 
     18   postPatch = ''
     19     substituteInPlace setup.py \
     20       --replace-fail ", 'pytest-runner'" ""
     21   '';
     22 
     23   nativeBuildInputs = with python3Packages; [
     24     cython
     25   ];
     26 
     27   dependencies = with python3Packages; [ jinja2 ];
     28 
     29   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     30 
     31   doCheck = false;
     32 
     33   meta = {
     34     description = "A Cython based protobuf compiler";
     35     homepage = "https://github.com/appnexus/pyrobuf";
     36     license = lib.licenses.asl20;
     37     maintainers = [ lib.maintainers.sikmir ];
     38   };
     39 }