mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-16 21:10:25 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
34 lines
685 B
Nix
34 lines
685 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
isPy27,
|
|
lib,
|
|
numpy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "javaobj-py3";
|
|
version = "0.4.4";
|
|
format = "setuptools";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-5OMlfvLPgaMzl4ek1c+STlTJHwlacj9tJYTa5h1Dlu0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
# Tests assume network connectivity
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "javaobj" ];
|
|
|
|
meta = {
|
|
description = "Module for serializing and de-serializing Java objects";
|
|
homepage = "https://github.com/tcalmant/python-javaobj";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ kamadorueda ];
|
|
};
|
|
}
|