diff --git a/pkgs/development/python-modules/argcomplete/default.nix b/pkgs/development/python-modules/argcomplete/default.nix index 9725d8b92bd8..cc0ae612ce55 100644 --- a/pkgs/development/python-modules/argcomplete/default.nix +++ b/pkgs/development/python-modules/argcomplete/default.nix @@ -1,33 +1,33 @@ { lib , buildPythonPackage -, fetchPypi -, pexpect +, fetchFromGitHub , pythonOlder +, setuptools +, setuptools-scm }: buildPythonPackage rec { pname = "argcomplete"; - version = "2.1.1"; - format = "setuptools"; + version = "3.1.1"; + format = "pyproject"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; - src = fetchPypi { - inherit pname version; - hash = "sha256-cuCDQIUtMlREWcDBmq0bSKosOpbejG5XQkVrT1OMpS8="; + src = fetchFromGitHub { + owner = "kislyuk"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-N1Us/dpF/y638qIuwTzBiuv4vXfBMtWxmQnMBxNTUuc="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace '"coverage",' "" \ - --replace " + lint_require" "" - ''; + SETUPTOOLS_SCM_PRETEND_VERSION = version; - propagatedBuildInputs = [ - pexpect + nativeBuildInputs = [ + setuptools + setuptools-scm ]; - # tries to build and install test packages which fails + # Tries to build and install test packages which fails doCheck = false; pythonImportsCheck = [ diff --git a/pkgs/development/python-modules/censys/default.nix b/pkgs/development/python-modules/censys/default.nix index 014776d30ca5..70601478b1bd 100644 --- a/pkgs/development/python-modules/censys/default.nix +++ b/pkgs/development/python-modules/censys/default.nix @@ -1,4 +1,5 @@ { lib +, argcomplete , backoff , buildPythonPackage , fetchFromGitHub @@ -17,7 +18,7 @@ buildPythonPackage rec { pname = "censys"; - version = "2.2.0"; + version = "2.2.4"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -26,7 +27,7 @@ buildPythonPackage rec { owner = "censys"; repo = "censys-python"; rev = "refs/tags/v${version}"; - hash = "sha256-CtW6EN9oH/OIZ4XaoSuKlMYK9Mh/ewRs6y34xbfY234="; + hash = "sha256-gCq01lfAoKoS74C8gjj84mZpXDMtdNVaRLwhlEXwiPI="; }; nativeBuildInputs = [ @@ -35,6 +36,7 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ + argcomplete backoff requests rich @@ -73,6 +75,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python API wrapper for the Censys Search Engine (censys.io)"; homepage = "https://github.com/censys/censys-python"; + changelog = "https://github.com/censys/censys-python/releases/tag/v${version}"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; };