Skip to content

Commit

Permalink
python312Packages.pysatochip: fix build (#352942)
Browse files Browse the repository at this point in the history
  • Loading branch information
jopejoe1 authored Nov 6, 2024
2 parents 809c418 + 8a1b1fb commit 90fcec9
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions pkgs/development/python-modules/pysatochip/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
certifi,
cryptography,
ecdsa,
Expand All @@ -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
Expand Down

0 comments on commit 90fcec9

Please sign in to comment.