Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / aiorun / default.nix
blob414f8a6d9a64149579a3d943901a9af725bbcd1c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pygments
6 , pytestCheckHook
7 , pytest-cov
8 , uvloop
9 }:
11 buildPythonPackage rec {
12   pname = "aiorun";
13   version = "2020.12.1";
14   format = "flit";
15   disabled = pythonOlder "3.5";
17   src = fetchFromGitHub {
18     owner = "cjrh";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "sha256-ktc2cmoPNYcsVyKCWs+ivhV5onywFIrdDRBiBKrdiF4=";
22   };
24   propagatedBuildInputs = [
25     pygments
26   ];
28   checkInputs = [
29     pytestCheckHook
30     pytest-cov
31     uvloop
32   ];
34   # allow for writable directory for darwin
35   preBuild = ''
36     export HOME=$TMPDIR
37   '';
39   pythonImportsCheck = [ "aiorun" ];
41   meta = with lib; {
42     description = "Boilerplate for asyncio applications";
43     homepage = "https://github.com/cjrh/aiorun";
44     license = licenses.asl20;
45     maintainers = with maintainers; [ costrouc ];
46   };