nur-packages

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

default.nix (759B)


      1 {
      2   lib,
      3   python3Packages,
      4   fetchFromGitHub,
      5 }:
      6 
      7 python3Packages.buildPythonPackage rec {
      8   pname = "cykhash";
      9   version = "2.0.1";
     10 
     11   src = fetchFromGitHub {
     12     owner = "realead";
     13     repo = "cykhash";
     14     rev = "99db6d2075b1f33177ed034e0c873d58190658ae";
     15     hash = "sha256-R6a19oExRVHSnfeEM5XsD77BPEWpC0BeNdep12YffN8=";
     16   };
     17 
     18   nativeBuildInputs = with python3Packages; [ cython ];
     19 
     20   nativeCheckInputs = with python3Packages; [
     21     numpy
     22     pytestCheckHook
     23   ];
     24 
     25   doCheck = false;
     26 
     27   preCheck = ''
     28     export HOME=$TMPDIR
     29   '';
     30 
     31   pytestFlagsArray = [ "tests/unit_tests" ];
     32 
     33   meta = {
     34     description = "cython wrapper for khash";
     35     inherit (src.meta) homepage;
     36     license = lib.licenses.mit;
     37     maintainers = [ lib.maintainers.sikmir ];
     38   };
     39 }