Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 37 lines 717 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, pythonOlder 6, typing-extensions 7, pytest 8}: 9 10buildPythonPackage rec { 11 pname = "JPype1"; 12 version = "1.2.1"; 13 disabled = isPy27; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "f210646127d24be73cfc6d807e2cda1c6b2ab39b7a293008e8b46367af6f2204"; 18 }; 19 20 propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ 21 typing-extensions 22 ]; 23 24 checkInputs = [ 25 pytest 26 ]; 27 28 # required openjdk (easy) but then there were some class path issues 29 # when running the tests 30 doCheck = false; 31 32 meta = with lib; { 33 homepage = "https://github.com/originell/jpype/"; 34 license = licenses.asl20; 35 description = "A Python to Java bridge"; 36 }; 37}