Merge master into staging-next
This commit is contained in:
22
pkgs/development/python-modules/avro-python3/default.nix
Normal file
22
pkgs/development/python-modules/avro-python3/default.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "avro-python3";
|
||||
version = "1.8.2";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f82cf0d66189600b1e6b442f650ad5aca6c189576723dcbf6f9ce096eab81bd6";
|
||||
};
|
||||
|
||||
doCheck = false; # No such file or directory: './run_tests.py
|
||||
|
||||
meta = with lib; {
|
||||
description = "A serialization and RPC framework";
|
||||
homepage = https://pypi.python.org/pypi/avro-python3/;
|
||||
license = licenses.asl20;
|
||||
|
||||
maintainers = [ maintainers.shlevy maintainers.timma ];
|
||||
};
|
||||
}
|
||||
78
pkgs/development/python-modules/onnx/default.nix
Normal file
78
pkgs/development/python-modules/onnx/default.nix
Normal file
@@ -0,0 +1,78 @@
|
||||
{ lib
|
||||
, fetchpatch
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, isPy27
|
||||
, cmake
|
||||
, protobuf
|
||||
, numpy
|
||||
, six
|
||||
, typing-extensions
|
||||
, typing
|
||||
, pytestrunner
|
||||
, pytest
|
||||
, nbval
|
||||
, tabulate
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "onnx";
|
||||
version = "1.6.0";
|
||||
|
||||
# Due to Protobuf packaging issues this build of Onnx with Python 2 gives
|
||||
# errors on import
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0ig33jl3591041lyylxp52yi20rfrcqx3i030hd6al8iabzc721v";
|
||||
};
|
||||
|
||||
# Remove the unqualified requirement for the typing package for running the
|
||||
# tests. typing is already required for the installation, where it is
|
||||
# correctly qualified so as to only be required for sufficiently old Python
|
||||
# versions.
|
||||
# This patch should be in the next release (>1.6).
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/onnx/onnx/commit/c963586d0f8dd5740777b2fd06f04ec60816de9f.patch";
|
||||
sha256 = "1hl26cw5zckc91gmh0bdah87jyprccxiw0f4i5h1gwkq28hm6wbj";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
protobuf
|
||||
numpy
|
||||
six
|
||||
typing-extensions
|
||||
] ++ lib.optional (pythonOlder "3.5") [ typing ];
|
||||
|
||||
checkInputs = [
|
||||
pytestrunner
|
||||
pytest
|
||||
nbval
|
||||
tabulate
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs tools/protoc-gen-mypy.py
|
||||
'';
|
||||
|
||||
# The executables are just utility scripts that aren't too important
|
||||
postInstall = ''
|
||||
rm -r $out/bin
|
||||
'';
|
||||
|
||||
# The setup.py does all the configuration (running CMake)
|
||||
dontConfigure = true;
|
||||
|
||||
meta = {
|
||||
homepage = http://onnx.ai;
|
||||
description = "Open Neural Network Exchange";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.acairncross ];
|
||||
};
|
||||
}
|
||||
@@ -10,11 +10,8 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
|
||||
# fix the ASCII-mode LICENSE file read
|
||||
# disable test_fetch and the doctests (which also invoke fetch)
|
||||
patchPhase = stdenv.lib.optionalString isPy3k ''
|
||||
sed -i "s/)\.read(/,encoding='utf-8'\0/" setup.py
|
||||
'' + ''
|
||||
postPatch = ''
|
||||
sed -i -e "/def test_fetch/i\\
|
||||
\\t@unittest.skip('requires internet')" -e "/def additional_tests():/,+1d" tests.py
|
||||
'';
|
||||
|
||||
39
pkgs/development/python-modules/python-miio/default.nix
Normal file
39
pkgs/development/python-modules/python-miio/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, appdirs
|
||||
, click
|
||||
, construct
|
||||
, cryptography
|
||||
, pytest
|
||||
, zeroconf
|
||||
, attrs
|
||||
, pytz
|
||||
, tqdm
|
||||
, netifaces
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-miio";
|
||||
version = "0.4.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "19423b3386b23d2e0fc94a8f6a358bcfbb44eed05376e33fd434d26d168bd18c";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python library for interfacing with Xiaomi smart appliances";
|
||||
homepage = https://github.com/rytilahti/python-miio;
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ flyfloh ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "solo-python";
|
||||
version = "0.0.18";
|
||||
version = "0.0.21";
|
||||
format = "flit";
|
||||
disabled = pythonOlder "3.6"; # only python>=3.6 is supported
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
owner = "solokeys";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "01mgppjvxlr93vrgz7bzisghpg1vqyaj4cg5wngk0h499iyx4d9q";
|
||||
sha256 = "07r451dp3ma1mh735b2kjv86a4jkjhmag70cjqf73z7b61dmzl1q";
|
||||
};
|
||||
|
||||
# replaced pinned fido, with unrestricted fido version
|
||||
@@ -48,6 +48,5 @@
|
||||
homepage = "https://github.com/solokeys/solo-python";
|
||||
maintainers = with maintainers; [ wucke13 ];
|
||||
license = with licenses; [ asl20 mit ];
|
||||
broken = true; # no longer compatible with fido2
|
||||
};
|
||||
}
|
||||
|
||||
47
pkgs/development/python-modules/stups-pierone/default.nix
Normal file
47
pkgs/development/python-modules/stups-pierone/default.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, requests
|
||||
, stups-cli-support
|
||||
, stups-zign
|
||||
, pytest
|
||||
, pytestcov
|
||||
, hypothesis
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "stups-pierone";
|
||||
version = "1.1.45";
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zalando-stups";
|
||||
repo = "pierone-cli";
|
||||
rev = version;
|
||||
sha256 = "1ggfizw27wpcagbbk15xpfrhq6b250cx4278b5d7y8s438g128cs";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
requests
|
||||
stups-cli-support
|
||||
stups-zign
|
||||
];
|
||||
|
||||
preCheck = "
|
||||
export HOME=$TEMPDIR
|
||||
";
|
||||
|
||||
checkInputs = [
|
||||
pytest
|
||||
pytestcov
|
||||
hypothesis
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convenient command line client for STUPS' Pier One Docker registry";
|
||||
homepage = "https://github.com/zalando-stups/pierone-cli";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.mschuwalow ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user