python313Packages.directv: modernize

Changed files
+11 -7
pkgs
development
python-modules
directv
+11 -7
pkgs/development/python-modules/directv/default.nix
···
lib,
buildPythonPackage,
fetchFromGitHub,
aiohttp,
yarl,
aresponses,
···
buildPythonPackage rec {
pname = "directv";
version = "0.4.0";
-
format = "setuptools";
src = fetchFromGitHub {
owner = "ctalkington";
repo = "python-directv";
-
rev = version;
-
sha256 = "19jckf6qvl8fwi8yff1qy8c44xdz3zpi1ip1md6zl2c503qc91mk";
};
postPatch = ''
···
--replace-fail "with async_timeout.timeout" "async with async_timeout.timeout"
'';
-
propagatedBuildInputs = [
aiohttp
yarl
];
···
pythonImportsCheck = [ "directv" ];
-
meta = with lib; {
description = "Asynchronous Python client for DirecTV (SHEF)";
homepage = "https://github.com/ctalkington/python-directv";
-
license = licenses.mit;
-
maintainers = with maintainers; [ dotlambda ];
};
}
···
lib,
buildPythonPackage,
fetchFromGitHub,
+
setuptools,
aiohttp,
yarl,
aresponses,
···
buildPythonPackage rec {
pname = "directv";
version = "0.4.0";
+
pyproject = true;
src = fetchFromGitHub {
owner = "ctalkington";
repo = "python-directv";
+
tag = version;
+
hash = "sha256-s4bE8ACFCfpNq+HGEO8fv3VCGPI4OOdR5A7RjY2bTKY=";
};
postPatch = ''
···
--replace-fail "with async_timeout.timeout" "async with async_timeout.timeout"
'';
+
build-system = [ setuptools ];
+
+
dependencies = [
aiohttp
yarl
];
···
pythonImportsCheck = [ "directv" ];
+
meta = {
+
changelog = "https://github.com/ctalkington/python-directv/releases/tag/${src.tag}";
description = "Asynchronous Python client for DirecTV (SHEF)";
homepage = "https://github.com/ctalkington/python-directv";
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ dotlambda ];
};
}