2019-12-28 09:01:45 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-15 01:34:09 +01:00
|
|
|
, isPy27
|
2019-12-28 09:01:45 +00:00
|
|
|
, lib
|
2021-02-03 16:12:46 +00:00
|
|
|
, numpy
|
2019-12-28 09:01:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "javaobj-py3";
|
2021-02-03 16:12:46 +00:00
|
|
|
version = "0.4.2";
|
2020-08-15 01:34:09 +01:00
|
|
|
disabled = isPy27;
|
2019-12-28 09:01:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-03 16:12:46 +00:00
|
|
|
sha256 = "sha256-7Tsf/P058WVynLU1h8ygKrC/pMMyyDepLV/+au9cgBA=";
|
2019-12-28 09:01:45 +00:00
|
|
|
};
|
|
|
|
|
2021-02-03 16:12:46 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
2019-12-28 09:01:45 +00:00
|
|
|
# Tests assume network connectivity
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-02-03 16:12:46 +00:00
|
|
|
pythonImportsCheck = [ "javaobj" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2019-12-28 09:01:45 +00:00
|
|
|
description = "Module for serializing and de-serializing Java objects";
|
|
|
|
homepage = "https://github.com/tcalmant/python-javaobj";
|
2021-02-03 16:12:46 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
2019-12-28 09:01:45 +00:00
|
|
|
};
|
|
|
|
}
|