Merge pull request #251752 from tjni/ipfshttpclient

python310Packages.ipfshttpclient: switch to pyproject build and mark darwin unbroken
This commit is contained in:
Nick Cao 2023-08-28 08:58:43 +08:00 committed by GitHub
commit f1f05f08dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
{ stdenv
, lib
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pythonOlder
, python
, py-multiaddr
@ -22,7 +22,7 @@
buildPythonPackage rec {
pname = "ipfshttpclient";
version = "0.8.0a2";
format = "flit";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
@ -32,6 +32,10 @@ buildPythonPackage rec {
hash = "sha256-OmC67pN2BbuGwM43xNDKlsLhwVeUbpvfOazyIDvoMEA=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
py-multiaddr
requests
@ -85,7 +89,6 @@ buildPythonPackage rec {
pythonImportsCheck = [ "ipfshttpclient" ];
meta = with lib; {
broken = stdenv.isDarwin;
description = "A python client library for the IPFS API";
homepage = "https://github.com/ipfs-shipyard/py-ipfs-http-client";
license = licenses.mit;