Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ircrobots / default.nix
blob76fe922fa0c6cdd6a616f47d2dc8bbeac1beb269
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , anyio
6 , asyncio-rlock
7 , asyncio-throttle
8 , ircstates
9 , async-stagger
10 , async-timeout
11 , python
14 buildPythonPackage rec {
15   pname = "ircrobots";
16   version = "0.6.6";
17   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "jesopo";
22     repo = pname;
23     rev = "v${version}";
24     hash = "sha256-mIh3tERwHtGH9eA0AT8Lcnwp1Wn9lQhKkUjuZcOXO/c=";
25   };
27   postPatch = ''
28     # too specific pins https://github.com/jesopo/ircrobots/issues/3
29     sed -iE 's/anyio.*/anyio/' requirements.txt
30   '';
32   propagatedBuildInputs = [
33     anyio
34     asyncio-rlock
35     asyncio-throttle
36     ircstates
37     async-stagger
38     async-timeout
39   ];
41   checkPhase = ''
42     ${python.interpreter} -m unittest test
43   '';
45   pythonImportsCheck = [ "ircrobots" ];
47   meta = with lib; {
48     description = "Asynchronous bare-bones IRC bot framework for python3";
49     license = licenses.mit;
50     homepage = "https://github.com/jesopo/ircrobots";
51     maintainers = with maintainers; [ hexa ];
52   };