diff --git a/pkgs/development/python-modules/pysnmpcrypto/default.nix b/pkgs/development/python-modules/pysnmpcrypto/default.nix index 73e3ed2e17b3..047e5cc9a2cc 100644 --- a/pkgs/development/python-modules/pysnmpcrypto/default.nix +++ b/pkgs/development/python-modules/pysnmpcrypto/default.nix @@ -1,10 +1,10 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, # build-system - setuptools, + poetry-core, # dependencies cryptography, @@ -16,24 +16,19 @@ buildPythonPackage rec { pname = "pysnmpcrypto"; - version = "0.0.4"; + version = "0.1.0"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-tjX7Ox7GY3uaADP1BQYhThbrhFdLHSWrAnu95MqlUSk="; + src = fetchFromGitHub { + owner = "lextudio"; + repo = "pysnmpcrypto"; + tag = "v${version}"; + hash = "sha256-gNRD8mSWVVLXwJjb3nT7IKnjTdwTutFDnQybgZTY2b0="; }; - postPatch = '' - # ValueError: invalid literal for int() with base 10: 'post0' in File "", line 104, in - substituteInPlace setup.py --replace \ - "observed_version = [int(x) for x in setuptools.__version__.split('.')]" \ - "observed_version = [36, 2, 0]" - ''; + build-system = [ poetry-core ]; - nativeBuildInputs = [ setuptools ]; - - propagatedBuildInputs = [ + dependencies = [ cryptography pycryptodomex ]; @@ -44,8 +39,8 @@ buildPythonPackage rec { meta = with lib; { description = "Strong crypto support for Python SNMP library"; - homepage = "https://github.com/etingof/pysnmpcrypto"; - changelog = "https://github.com/etingof/pysnmpcrypto/blob/${version}/CHANGES.txt"; + homepage = "https://github.com/lextudio/pysnmpcrypto"; + changelog = "https://github.com/lextudio/pysnmpcrypto/blob/${version}/CHANGES.txt"; license = licenses.bsd2; maintainers = [ ]; };