nixpkgs/pkgs/development/python-modules/aiohttp-wsgi/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

38 lines
717 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiohttp-wsgi";
version = "0.10.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "etianen";
repo = pname;
rev = "v${version}";
hash = "sha256-3Q00FidZWV1KueuHyHKQf1PsDJGOaRW6v/kBy7lzD4Q=";
};
propagatedBuildInputs = [
aiohttp
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "aiohttp_wsgi" ];
meta = with lib; {
description = "WSGI adapter for aiohttp";
homepage = "https://github.com/etianen/aiohttp-wsgi";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}