pythonPackages.autobahn: limit to Python 3

Python 2.7 is long end-of-life and dependency ond old compatibility
helpers can be dropped.
This commit is contained in:
Markus S. Wamser 2021-04-30 09:41:54 +02:00
parent 8192beda59
commit 1c5a02033a
1 changed files with 2 additions and 3 deletions

View File

@ -1,19 +1,18 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, { lib, buildPythonPackage, fetchPypi, isPy3k,
six, txaio, twisted, zope_interface, cffi, six, txaio, twisted, zope_interface, cffi,
trollius ? null, futures ? null,
mock, pytest, cryptography, pynacl mock, pytest, cryptography, pynacl
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "autobahn"; pname = "autobahn";
version = "21.3.1"; version = "21.3.1";
disabled = !isPy3k;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "e126c1f583e872fb59e79d36977cfa1f2d0a8a79f90ae31f406faae7664b8e03"; sha256 = "e126c1f583e872fb59e79d36977cfa1f2d0a8a79f90ae31f406faae7664b8e03";
}; };
propagatedBuildInputs = [ six txaio twisted zope_interface cffi cryptography pynacl ] ++ propagatedBuildInputs = [ six txaio twisted zope_interface cffi cryptography pynacl ];
(lib.optionals (!isPy3k) [ trollius futures ]);
checkInputs = [ mock pytest ]; checkInputs = [ mock pytest ];
checkPhase = '' checkPhase = ''