Merge master into staging-next
This commit is contained in:
27
pkgs/development/python-modules/pysqueezebox/default.nix
Normal file
27
pkgs/development/python-modules/pysqueezebox/default.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder, aiohttp }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysqueezebox";
|
||||
version = "0.4.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "02d73e98314a63a38c314d40942a0b098fb59d2f08ac39b2627cfa73f785cf0d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
# No tests in the Pypi distribution
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pysqueezebox" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Asynchronous library to control Logitech Media Server";
|
||||
homepage = "https://github.com/rajlaud/pysqueezebox";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
};
|
||||
}
|
||||
@@ -3,28 +3,31 @@
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, pybind11
|
||||
, tiledb
|
||||
, numpy
|
||||
, wheel
|
||||
, isPy3k
|
||||
, setuptools_scm
|
||||
, psutil
|
||||
, pandas
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tiledb";
|
||||
version = "0.5.6";
|
||||
version = "0.6.6";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "TileDB-Inc";
|
||||
repo = "TileDB-Py";
|
||||
rev = version;
|
||||
sha256 = "0cgm4dhyqay26xmrzlv21ha8qh55m4q3yr338lrv81ngz77zxsvw";
|
||||
sha256 = "0b2kn1xyf7d994kz29dpqiaf8yzvx0axw4yqi854c54pl22ddgzl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
pybind11
|
||||
setuptools_scm
|
||||
];
|
||||
|
||||
@@ -39,6 +42,8 @@ buildPythonPackage rec {
|
||||
|
||||
checkInputs = [
|
||||
psutil
|
||||
# optional
|
||||
pandas
|
||||
];
|
||||
|
||||
TILEDB_PATH = tiledb;
|
||||
@@ -57,16 +62,19 @@ buildPythonPackage rec {
|
||||
"test_docs" "dont_test_docs"
|
||||
# these tests don't always fail
|
||||
substituteInPlace tiledb/tests/test_libtiledb.py --replace \
|
||||
"test_varlen_write_int_subarray" "dont_test_varlen_write_int_subarray"
|
||||
"test_varlen_write_int_subarray" "dont_test_varlen_write_int_subarray" \
|
||||
--replace "test_memory_cleanup" "dont_test_memory_cleanup" \
|
||||
--replace "test_ctx_thread_cleanup" "dont_test_ctx_thread_cleanup"
|
||||
substituteInPlace tiledb/tests/test_metadata.py --replace \
|
||||
"test_metadata_consecutive" "dont_test_metadata_consecutive"
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
pushd "$out"
|
||||
pushd "$TMPDIR"
|
||||
${python.interpreter} -m unittest tiledb.tests.all.suite_test
|
||||
popd
|
||||
'';
|
||||
pythonImportsCheck = [ "tiledb" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python interface to the TileDB storage manager";
|
||||
|
||||
20
pkgs/development/python-modules/yeelight/default.nix
Normal file
20
pkgs/development/python-modules/yeelight/default.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, future, enum-compat }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yeelight";
|
||||
version = "0.5.3";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "8d49846f0cede1e312cbcd1d0e44c42073910bbcadb31b87ce2a7d24dea3af38";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ future enum-compat ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A Python library for controlling YeeLight RGB bulbs";
|
||||
homepage = "https://gitlab.com/stavros/python-yeelight/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ nyanloutre ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user