From 8a1b1fb951e03430ba7c3e9bb6919e926789a195 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Sat, 2 Nov 2024 13:05:12 +0100 Subject: [PATCH] pythonPackages.pysatochip: fix build --- .../python-modules/pysatochip/default.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/pysatochip/default.nix b/pkgs/development/python-modules/pysatochip/default.nix index 4b9d18968803..0921aa790e80 100644 --- a/pkgs/development/python-modules/pysatochip/default.nix +++ b/pkgs/development/python-modules/pysatochip/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, certifi, cryptography, ecdsa, @@ -17,18 +17,13 @@ buildPythonPackage rec { format = "setuptools"; disabled = pythonOlder "3.6"; - src = fetchPypi { - inherit pname version; - hash = "sha256-ccyBvQ00p/uDULzGeJIhIJIiRRrFitsp271wep74DHI="; + src = fetchFromGitHub { + owner = "toporin"; + repo = "pysatochip"; + rev = "v${version}"; + hash = "sha256-7wA9erk2OA1FyNSzOSWJzjyp9QeYq6C+YA8B0Dk2iQE="; }; - postPatch = '' - substituteInPlace requirements.txt \ - --replace "cryptography==3.3.2" "cryptography" \ - --replace "ecdsa==0.15" "ecdsa" \ - --replace "pyopenssl==20.0.0" "pyopenssl" - ''; - propagatedBuildInputs = [ cryptography ecdsa