mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 16:11:22 +00:00
Merge branch 'master' into staging-next
This commit is contained in:
44
pkgs/development/python-modules/aiokef/default.nix
Normal file
44
pkgs/development/python-modules/aiokef/default.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, async-timeout
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest-cov
|
||||
, pytestCheckHook
|
||||
, pytest-mypy
|
||||
, pythonOlder
|
||||
, tenacity
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiokef";
|
||||
version = "0.2.17";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "basnijholt";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0ms0dwrpj80w55svcppbnp7vyl5ipnjfp1c436k5c7pph4q5pxk9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
async-timeout
|
||||
tenacity
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-cov
|
||||
pytest-mypy
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "tests" ];
|
||||
pythonImportsCheck = [ "aiokef" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python API for KEF speakers";
|
||||
homepage = "https://github.com/basnijholt/aiokef";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
39
pkgs/development/python-modules/awesomeversion/default.nix
Normal file
39
pkgs/development/python-modules/awesomeversion/default.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "awesomeversion";
|
||||
version = "20.12.5";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ludeeus";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1jwlfqnrqlxjp30fj9bcqh7vgicmpdbn5kjdcmll4srnl87lalfg";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "main" ${version}
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "awesomeversion" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to deal with versions";
|
||||
homepage = "https://github.com/ludeeus/awesomeversion";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "browser-cookie3";
|
||||
version = "0.11.4";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "3d140c6b651dbd8b8555aca6472557fcfda4dd93afc26ea3a200be922a843e2c";
|
||||
sha256 = "5f26422091ad0e97375d565f8fbacfaf314d0722db35c921635eab23686e4fc4";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "casbin";
|
||||
version = "0.15.0";
|
||||
version = "0.16.0";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
@@ -16,7 +16,7 @@ buildPythonPackage rec {
|
||||
owner = pname;
|
||||
repo = "pycasbin";
|
||||
rev = "v${version}";
|
||||
sha256 = "0w34xs9qpf1x4rq2ri4fhx3yi8h4inzavv9hjsx8mlkzid7gdx1b";
|
||||
sha256 = "1983p8pkbdj6yaclkdng7fn0pmlbz1yc75a4a847ppw47075ryph";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
||||
@@ -11,11 +11,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "docker";
|
||||
version = "4.4.0";
|
||||
version = "4.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "cffc771d4ea1389fc66bc95cb72d304aa41d1a1563482a9a000fba3a84ed5071";
|
||||
sha256 = "sha256-BgSnRxnV0t5Dh1OTS3Vb/NpvYvSbjkswlppLCiqKEiA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = lib.optional isPy27 mock;
|
||||
|
||||
28
pkgs/development/python-modules/pyfido/default.nix
Normal file
28
pkgs/development/python-modules/pyfido/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyfido";
|
||||
version = "2.1.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0b28bhyhscaw7dbc92dxswann05x8mz92cagyawdfm8jnc67gq4b";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pyfido" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client to get fido account data";
|
||||
homepage = "https://github.com/titilambert/pyfido";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
28
pkgs/development/python-modules/pyfnip/default.nix
Normal file
28
pkgs/development/python-modules/pyfnip/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyfnip";
|
||||
version = "0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0q52rb0kshgbligxjqrwz0v7kgqjbv6jahdb66ndxy93mfr0ig3a";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pyfnip" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client to get fido account data";
|
||||
homepage = "https://github.com/juhaniemi/pyfnip";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -8,14 +8,14 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyftdi";
|
||||
version = "0.52.0";
|
||||
version = "0.52.9";
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eblot";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0nm4z7v9qcb9mxqbl21jgzica4faldnpy5qmbkrc6scnx55pxfm9";
|
||||
sha256 = "07q9wmpl97a6laxfbcjqhv373msbsjppsyf5i77h0f6ccil0q1i6";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyusb pyserial ];
|
||||
|
||||
@@ -1,40 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, aiohttp
|
||||
, aresponses
|
||||
, async-timeout
|
||||
, semantic-version
|
||||
, pytestrunner
|
||||
, awesomeversion
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonAtLeast
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyhaversion";
|
||||
version = "3.4.2";
|
||||
disabled = pythonOlder "3.8";
|
||||
version = "20.12.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "b4e49dfa0f9dae10edd072e630d902e5497daa312baad58b7df7618efe863377";
|
||||
# Only 3.8.0 and beyond are supported
|
||||
disabled = pythonAtLeast "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ludeeus";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "17yl67dgw75dghljcfwzblm11kqnh6sxf47w62mxz86aq9zrvcxd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
async-timeout
|
||||
semantic-version
|
||||
awesomeversion
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pytestrunner
|
||||
checkInputs = [
|
||||
aresponses
|
||||
awesomeversion
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pyhaversion" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A python module to the newest version number of Home Assistant";
|
||||
description = "Python module to the newest version number of Home Assistant";
|
||||
homepage = "https://github.com/ludeeus/pyhaversion";
|
||||
changelog = "https://github.com/ludeeus/pyhaversion/releases/tag/${version}";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = [ maintainers.makefu ];
|
||||
maintainers = with maintainers; [ makefu ];
|
||||
};
|
||||
}
|
||||
|
||||
60
pkgs/development/python-modules/pyinsteon/default.nix
Normal file
60
pkgs/development/python-modules/pyinsteon/default.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, aiofiles
|
||||
, aiohttp
|
||||
, async_generator
|
||||
, pypubsub
|
||||
, pyserial
|
||||
, pyserial-asyncio
|
||||
, pyyaml
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pytest-cov
|
||||
, pytest-asyncio
|
||||
, pytest-timeout
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyinsteon";
|
||||
version = "1.0.8";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0d028fcqmdzxp0vsz7digx794s9l65ydsnsyvyx275z6577x7h4h";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiofiles
|
||||
aiohttp
|
||||
async_generator
|
||||
pypubsub
|
||||
pyserial
|
||||
pyserial-asyncio
|
||||
pyyaml
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytest-cov
|
||||
pytest-timeout
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyinsteon" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library to support Insteon home automation projects";
|
||||
longDescription = ''
|
||||
This is a Python package to interface with an Insteon Modem. It has been
|
||||
tested to work with most USB or RS-232 serial based devices such as the
|
||||
2413U, 2412S, 2448A7 and Hub models 2242 and 2245.
|
||||
'';
|
||||
homepage = "https://github.com/pyinsteon/pyinsteon";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
25
pkgs/development/python-modules/pylutron/default.nix
Normal file
25
pkgs/development/python-modules/pylutron/default.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylutron";
|
||||
version = "0.2.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1q8qdy26s9hvfsh75pak7xiqjwrwsgq18p4d86dwf4dwmy5s4qj1";
|
||||
};
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pylutron" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for controlling a Lutron RadioRA 2 system";
|
||||
homepage = "https://github.com/thecynic/pylutron";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -1,42 +1,44 @@
|
||||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pytestCheckHook
|
||||
, pytest
|
||||
, inflection
|
||||
, factory_boy
|
||||
, pytestcache
|
||||
, pytestcov
|
||||
, fetchFromGitHub
|
||||
, inflection
|
||||
, mock
|
||||
, pytest
|
||||
, pytestcache
|
||||
, pytestCheckHook
|
||||
, pytestcov
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-factoryboy";
|
||||
version = "2.0.3";
|
||||
version = "2.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pytest-dev";
|
||||
repo = "pytest-factoryboy";
|
||||
rev = version;
|
||||
sha256 = "0m1snyybq2k51khlydhisq300vzys897vdbsicph628iran950hn";
|
||||
sha256 = "0v6b4ly0p8nknpnp3f4dbslfsifzzjx2vv27rfylx04kzdhg4m9p";
|
||||
};
|
||||
|
||||
# TODO: remove in next release, it's removed in master.
|
||||
postPatch = "substituteInPlace tox.ini --replace '--pep8' ''";
|
||||
propagatedBuildInputs = [
|
||||
factory_boy
|
||||
inflection
|
||||
pytest
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ factory_boy inflection pytest ];
|
||||
|
||||
# The project uses tox, which we can't. So we simply run pytest manually.
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytestcache
|
||||
pytestcov
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "--ignore=docs" ];
|
||||
pythonImportsCheck = [ "pytest_factoryboy" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Integration of factory_boy into the pytest runner.";
|
||||
description = "Integration of factory_boy into the pytest runner";
|
||||
homepage = "https://pytest-factoryboy.readthedocs.io/en/latest/";
|
||||
maintainers = with maintainers; [ winpat ];
|
||||
license = licenses.mit;
|
||||
|
||||
@@ -1,21 +1,28 @@
|
||||
{ lib, fetchFromGitHub, isPy3k, buildPythonPackage, pygame, pyglet, pysdl2, six }:
|
||||
{ lib, fetchFromGitHub
|
||||
, python, buildPythonPackage, isPy27
|
||||
, pygame, pyglet, pysdl2, six
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pytmx";
|
||||
version = "3.22.0";
|
||||
version = "3.24.0";
|
||||
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
# The release was not git tagged.
|
||||
owner = "bitcraft";
|
||||
repo = "PyTMX";
|
||||
rev = "187fd429dadcdc5828e78e6748a983aa1434e4d2";
|
||||
sha256 = "0480pr61v54bwdyzb983sk0fqkyfbcgrdn8k11yf1yck4zb119gc";
|
||||
rev = "eb96efea30d57b731654b2a167d86b8b553b147d";
|
||||
sha256 = "1g1j4w75zw76p5f8m5v0hdigdlva2flf0ngyk8nvqcwzcl5vq5wc";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pygame pyglet pysdl2 six ];
|
||||
|
||||
checkPhase = ''
|
||||
python -m unittest tests.pytmx.test_pytmx
|
||||
# Change into the test directory due to a relative resource path.
|
||||
cd tests/pytmx
|
||||
${python.interpreter} -m unittest test_pytmx
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
28
pkgs/development/python-modules/pyxeoma/default.nix
Normal file
28
pkgs/development/python-modules/pyxeoma/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyxeoma";
|
||||
version = "1.4.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0c9q6xdh2ciisv0crlz069haz01gfkhd5kasyr14jng4vjpzinc7";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ];
|
||||
|
||||
# Project doesn't have any tests
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pyxeoma" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python wrapper for Xeoma web server API";
|
||||
homepage = "https://github.com/jeradM/pyxeoma";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -1,39 +1,39 @@
|
||||
{ lib, stdenv, fetchPypi, python }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, factory_boy
|
||||
, faker
|
||||
, fetchPypi
|
||||
, pytest-cov
|
||||
, pytestCheckHook
|
||||
, six
|
||||
, tox
|
||||
}:
|
||||
|
||||
python.pkgs.buildPythonPackage rec {
|
||||
pname = "tld";
|
||||
version = "0.12.4";
|
||||
buildPythonPackage rec {
|
||||
pname = "tld";
|
||||
version = "0.12.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0976g7jcpi3jv7snawmfis5ybb6737cv2xw7wlanlfkyqljip24x";
|
||||
sha256 = "0d1lbbg2qdw5jjxks0dqlf69bki5885mhj8ysvgylmrni56hjqqv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python.pkgs; [ six ];
|
||||
checkInputs = with python.pkgs; [ factory_boy faker pytestcov tox pytestCheckHook];
|
||||
|
||||
# https://github.com/barseghyanartur/tld/issues/54
|
||||
disabledTests = [
|
||||
"test_1_update_tld_names"
|
||||
"test_1_update_tld_names_command"
|
||||
"test_2_update_tld_names_module"
|
||||
checkInputs = [
|
||||
factory_boy
|
||||
faker
|
||||
pytest-cov
|
||||
pytestCheckHook
|
||||
tox
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export PATH="$PATH:$out/bin"
|
||||
'';
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"tld"
|
||||
];
|
||||
pythonImportsCheck = [ "tld" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/barseghyanartur/tld";
|
||||
description = "Extracts the top level domain (TLD) from the URL given";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ ];
|
||||
# https://github.com/barseghyanartur/tld/blob/master/README.rst#license
|
||||
# MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-or-later
|
||||
license = with licenses; [ lgpl21Plus mpl11 gpl2Only ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
||||
, clikit
|
||||
, poetry
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "4.0.1";
|
||||
version = "5.0.1";
|
||||
pname = "xdg";
|
||||
disabled = isPy27;
|
||||
format = "pyproject";
|
||||
@@ -14,10 +14,10 @@ buildPythonPackage rec {
|
||||
owner = "srstevenson";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "13kgnbwam6wmdbig0m98vmyjcqrp0j62nmfknb6prr33ns2nxbs2";
|
||||
sha256 = "sha256-WMY9Hs9SbErTp8hVBoCWTz4dLQhuzqTRpXFEyE7+woo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry ];
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
clikit
|
||||
|
||||
Reference in New Issue
Block a user