nur-packages

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

default.nix (913B)


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