python3Packages.pysnmpcrypto: 0.0.4 -> 0.1.0

https://github.com/etingof/pysnmpcrypto/blob/0.1.0/CHANGES.txt

+12 -17
+12 -17
pkgs/development/python-modules/pysnmpcrypto/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - fetchPypi, 4 + fetchFromGitHub, 5 5 6 6 # build-system 7 - setuptools, 7 + poetry-core, 8 8 9 9 # dependencies 10 10 cryptography, ··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "pysnmpcrypto"; 19 - version = "0.0.4"; 19 + version = "0.1.0"; 20 20 pyproject = true; 21 21 22 - src = fetchPypi { 23 - inherit pname version; 24 - hash = "sha256-tjX7Ox7GY3uaADP1BQYhThbrhFdLHSWrAnu95MqlUSk="; 22 + src = fetchFromGitHub { 23 + owner = "lextudio"; 24 + repo = "pysnmpcrypto"; 25 + tag = "v${version}"; 26 + hash = "sha256-gNRD8mSWVVLXwJjb3nT7IKnjTdwTutFDnQybgZTY2b0="; 25 27 }; 26 28 27 - postPatch = '' 28 - # ValueError: invalid literal for int() with base 10: 'post0' in File "<string>", line 104, in <listcomp> 29 - substituteInPlace setup.py --replace \ 30 - "observed_version = [int(x) for x in setuptools.__version__.split('.')]" \ 31 - "observed_version = [36, 2, 0]" 32 - ''; 29 + build-system = [ poetry-core ]; 33 30 34 - nativeBuildInputs = [ setuptools ]; 35 - 36 - propagatedBuildInputs = [ 31 + dependencies = [ 37 32 cryptography 38 33 pycryptodomex 39 34 ]; ··· 44 39 45 40 meta = with lib; { 46 41 description = "Strong crypto support for Python SNMP library"; 47 - homepage = "https://github.com/etingof/pysnmpcrypto"; 48 - changelog = "https://github.com/etingof/pysnmpcrypto/blob/${version}/CHANGES.txt"; 42 + homepage = "https://github.com/lextudio/pysnmpcrypto"; 43 + changelog = "https://github.com/lextudio/pysnmpcrypto/blob/${version}/CHANGES.txt"; 49 44 license = licenses.bsd2; 50 45 maintainers = [ ]; 51 46 };