From f1057db80965b3ef65cff64be84269b6c8be1c44 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Fri, 2 Oct 2020 22:19:23 +0200 Subject: [PATCH] python3Packages.bip_utils: 1.4.0 -> 1.5.0 fetch sources from GitHub instead of PyPI to enable tests --- .../python-modules/bip_utils/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/bip_utils/default.nix b/pkgs/development/python-modules/bip_utils/default.nix index 490df40e93ca..2b9e16b6a639 100644 --- a/pkgs/development/python-modules/bip_utils/default.nix +++ b/pkgs/development/python-modules/bip_utils/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , pythonOlder , ecdsa , pysha3 @@ -8,20 +8,19 @@ buildPythonPackage rec { pname = "bip_utils"; - version = "1.4.0"; + version = "1.5.0"; disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - sha256 = "582022ab5c1ff35d0179a22a39c90b7e4e71e4641d59b2a3e81d60df741d1e3c"; + src = fetchFromGitHub { + owner = "ebellocchia"; + repo = pname; + rev = "v${version}"; + sha256 = "06ls1lara7sklqw6wrw5d3wpxwgyv6paxwjp37x7b3kfskm14cmd"; }; propagatedBuildInputs = [ ecdsa pysha3 ]; - # tests are not packaged in the released tarball - doCheck = false; - pythonImportsCheck = [ "bip_utils" ];