nixpkgs-suyu/pkgs/development/python-modules/graphql-subscription-manager/default.nix

41 lines
868 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, websockets
}:
buildPythonPackage rec {
pname = "graphql-subscription-manager";
version = "0.7.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "PyGraphqlWebsocketManager";
rev = "refs/tags/${version}";
hash = "sha256-6/REvY5QxsAPV41Pvg8vrJPYbDrGUrpOPn0vzIcCu0k=";
};
propagatedBuildInputs = [
setuptools
websockets
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [
"graphql_subscription_manager"
];
meta = with lib; {
description = "Python3 library for graphql subscription manager";
homepage = "https://github.com/Danielhiversen/PyGraphqlWebsocketManager";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}