nixpkgs/pkgs/development/python-modules/pychannels/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

31 lines
676 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
}:
buildPythonPackage rec {
pname = "pychannels";
version = "1.2.3";
src = fetchFromGitHub {
owner = "fancybits";
repo = pname;
rev = version;
hash = "sha256-E+VL4mJ2KxS5bJZc3Va+wvyVjT55LJz+1wHkxDRa85s=";
};
propagatedBuildInputs = [ requests ];
# Project has not published tests yet
doCheck = false;
pythonImportsCheck = [ "pychannels" ];
meta = with lib; {
description = "Python library for interacting with the Channels app";
homepage = "https://github.com/fancybits/pychannels";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}