Skip to content

Commit

Permalink
python311Packages.pyarr: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Dec 1, 2023
1 parent f09ad1b commit ce4b26f
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions pkgs/development/python-modules/pyarr/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,48 @@
{ lib
, fetchPypi
, fetchFromGitHub
, buildPythonPackage
, types-requests

# build-system
, poetry-core

# dependencies
, overrides
, requests
, types-requests
}:

buildPythonPackage rec {
pname = "pyarr";
version = "5.2.0";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-jlcc9Kj1MYSsnvJkKZXXWWJVDx3KIuojjbGtl8kDUpw=";
src = fetchFromGitHub {
owner = "totaldebug";
repo = "pyarr";
rev = "refs/tags/v${version}";
hash = "sha256-yvlDnAjmwDNdU1SWHGVrmoD3WHwrNt7hXoNNPo1hm1w=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace "poetry.masonry" "poetry.core.masonry"
'';

nativeBuildInputs = [
poetry-core
];

propagatedBuildInputs = [
overrides
requests
types-requests
];

pythonImportsCheck = [ "pyarr" ];
pythonImportsCheck = [
"pyarr"
];

doCheck = false; # requires running *arr instances

meta = with lib; {
description = "Python client for Servarr API's (Sonarr, Radarr, Readarr, Lidarr)";
Expand Down

0 comments on commit ce4b26f

Please sign in to comment.