Merge master into staging-next
This commit is contained in:
33
pkgs/development/python-modules/adext/default.nix
Normal file
33
pkgs/development/python-modules/adext/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, alarmdecoder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "adext";
|
||||
version = "0.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "184qxw6i5ixnhgkjnby4zwn4jg90mxb8xy9vbg80x5w331p4z50f";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "alarmdecoder==1.13.2" "alarmdecoder>=1.13.2"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ alarmdecoder ];
|
||||
|
||||
# Tests are not published yet
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "adext" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python extension for AlarmDecoder";
|
||||
homepage = "https://github.com/ajschmidt8/adext";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
26
pkgs/development/python-modules/agent-py/default.nix
Normal file
26
pkgs/development/python-modules/agent-py/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ aiohttp, buildPythonPackage, fetchPypi, isPy3k, lib, python, requests }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "agent-py";
|
||||
version = "0.0.23";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1hx88m8b8kfb2gm6hii5ldjv7hlvqf99cz0w2vj0d0grrxcbn5cz";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests aiohttp ];
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} tests/test_agent.py
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python wrapper around the Agent REST API.";
|
||||
homepage = "https://github.com/ispysoftware/agent-py";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jamiemagee ];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{ buildPythonPackage
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchPypi
|
||||
, isPy3k
|
||||
@@ -8,18 +9,17 @@
|
||||
, pytestCheckHook
|
||||
, requests
|
||||
, responses
|
||||
, lib, stdenv
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-digitalocean";
|
||||
version = "1.15.0";
|
||||
version = "1.16.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koalalorenzo";
|
||||
repo = "python-digitalocean";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1pz15mh72i992p63grwzqn2bbp6sm37zcp4f0fy1z7rsargwsbcz";
|
||||
sha256 = "16fxlfpisj4rcj9dvlifs6bpx42a0sn9b07bnyzwrbhi6nfvkd2g";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||
pytest
|
||||
pytestCheckHook
|
||||
responses
|
||||
] ++ stdenv.lib.optionals (!isPy3k) [
|
||||
] ++ lib.optionals (!isPy3k) [
|
||||
mock
|
||||
];
|
||||
|
||||
@@ -41,13 +41,12 @@ buildPythonPackage rec {
|
||||
cd digitalocean
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "digitalocean" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "digitalocean.com API to manage Droplets and Images";
|
||||
homepage = "https://pypi.python.org/pypi/python-digitalocean";
|
||||
license = licenses.lgpl3;
|
||||
maintainers = with maintainers; [
|
||||
kiwi
|
||||
teh
|
||||
];
|
||||
description = "Python API to manage Digital Ocean Droplets and Images";
|
||||
homepage = "https://github.com/koalalorenzo/python-digitalocean";
|
||||
license = with licenses; [ lgpl3Only ];
|
||||
maintainers = with maintainers; [ kiwi teh ];
|
||||
};
|
||||
}
|
||||
|
||||
26
pkgs/development/python-modules/dotty-dict/default.nix
Normal file
26
pkgs/development/python-modules/dotty-dict/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ lib
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
, setuptools_scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dotty_dict";
|
||||
version = "1.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-6wA1o2KezYQ5emjx9C8elKvRw0V3oZzT6srTMe58uvA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools_scm ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Dictionary wrapper for quick access to deeply nested keys";
|
||||
homepage = "https://dotty-dict.readthedocs.io";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ AndersonTorres ];
|
||||
};
|
||||
}
|
||||
@@ -1,8 +1,7 @@
|
||||
{ lib , buildPythonPackage, fetchFromGitHub, isPy27
|
||||
, falcon
|
||||
, pytestrunner
|
||||
, requests
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, marshmallow
|
||||
, mock
|
||||
, numpy
|
||||
@@ -20,19 +19,33 @@ buildPythonPackage rec {
|
||||
sha256 = "05rsv16g7ph100p8kl4l2jba0y4wcpp3xblc02mfp67zp1279vaq";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytestrunner ];
|
||||
propagatedBuildInputs = [ falcon requests ];
|
||||
|
||||
checkInputs = [ mock marshmallow pytest numpy ];
|
||||
checkPhase = ''
|
||||
mv hug hug.hidden
|
||||
# some tests attempt network access
|
||||
PATH=$out/bin:$PATH pytest -k "not (test_request or test_datagram_request)"
|
||||
checkInputs = [ mock marshmallow pytestCheckHook numpy ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace '"pytest-runner"' ""
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
# some tests need the `hug` CLI on the PATH
|
||||
export PATH=$out/bin:$PATH
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# some tests attempt network access
|
||||
"test_datagram_request"
|
||||
"test_request"
|
||||
# these tests use an unstable test dependency (https://github.com/hugapi/hug/issues/859)
|
||||
"test_marshmallow_custom_context"
|
||||
"test_marshmallow_schema"
|
||||
"test_transform"
|
||||
"test_validate_route_args_negative_case"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python framework that makes developing APIs as simple as possible, but no simpler";
|
||||
homepage = "https://github.com/timothycrosley/hug";
|
||||
homepage = "https://github.com/hugapi/hug";
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
{ stdenv, lib, openbabel, python, buildPythonPackage }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openbabel";
|
||||
version = "3.1.1";
|
||||
|
||||
src = "${openbabel}/lib/python${python.sourceVersion.major}.${python.sourceVersion.minor}/site-packages";
|
||||
|
||||
nativeBuildInputs = [ openbabel ];
|
||||
|
||||
# these env variables are used by the bindings to find libraries
|
||||
# they need to be included explicitly in your nix-shell for
|
||||
# some functionality to work (inparticular, pybel).
|
||||
# see https://openbabel.org/docs/dev/Installation/install.html
|
||||
BABEL_LIBDIR = "${openbabel}/lib/openbabel/3.1.0";
|
||||
LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${openbabel}/lib";
|
||||
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "openbabel" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://openbabel.org/wiki/Main_Page";
|
||||
description = "Python bindings for openbabel";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ danielbarter ];
|
||||
};
|
||||
}
|
||||
34
pkgs/development/python-modules/pyblackbird/default.nix
Normal file
34
pkgs/development/python-modules/pyblackbird/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pyserial
|
||||
, pyserial-asyncio
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyblackbird";
|
||||
version = "0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "koolsb";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0m1yd1cb3z8011x7nicxpf091bdcwghcphn0l21c65f71rabzg6s";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyserial
|
||||
pyserial-asyncio
|
||||
];
|
||||
|
||||
# Test setup try to create a serial port
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pyblackbird" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python implementation for Monoprice Blackbird units";
|
||||
homepage = "https://github.com/koolsb/pyblackbird";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -11,14 +11,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pypck";
|
||||
version = "0.7.8";
|
||||
version = "0.7.9";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alengwenus";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "06yqyqpzpypid27z31prvsp7nzpjqzn7gjlfqwjhhxl8fdgh8hkr";
|
||||
sha256 = "0clpi6bplzw7qg2m0hgwqr71zwxrh901gwprhd1yjykn30njp5bw";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
|
||||
37
pkgs/development/python-modules/roombapy/default.nix
Normal file
37
pkgs/development/python-modules/roombapy/default.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, hbmqtt
|
||||
, lib
|
||||
, paho-mqtt
|
||||
, poetry
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "roombapy";
|
||||
version = "1.6.2-1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pschmitt";
|
||||
repo = "roombapy";
|
||||
rev = version;
|
||||
sha256 = "14k7bys479xwpa4alpdwphzmxm3x8kc48nfqnshn1wj94vyxc425";
|
||||
};
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
nativeBuildInputs = [ poetry ];
|
||||
propagatedBuildInputs = [ paho-mqtt ];
|
||||
|
||||
checkInputs = [ hbmqtt pytest-asyncio pytestCheckHook ];
|
||||
pytestFlagsArray = [ "tests/" "--ignore=tests/test_discovery.py" ];
|
||||
pythonImportsCheck = [ "roombapy" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/pschmitt/roombapy";
|
||||
description = "Python program and library to control Wi-Fi enabled iRobot Roombas";
|
||||
maintainers = with maintainers; [ justinas ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user