From d688ed1a569bb8375508a9b8a226140dfaa56479 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 8 Dec 2020 13:45:40 +0800 Subject: [PATCH] extras: add flake8-artiq --- artiq-full/extras.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/artiq-full/extras.nix b/artiq-full/extras.nix index 49b07fa..09f2f24 100644 --- a/artiq-full/extras.nix +++ b/artiq-full/extras.nix @@ -221,4 +221,23 @@ in ''; propagatedBuildInputs = [ artiq pkgs.python3Packages.numpy pkgs.python3Packages.scipy pkgs.python3Packages.influxdb pkgs.python3Packages.setuptools ]; }; - } + } // (dualPackage { + name = "flake8-artiq"; + version = "0.1"; + src = pkgs.fetchgit { + url = "https://gitlab.com/duke-artiq/flake8-artiq.git"; + rev = "f16bda40526dc0821c6b86b07f2764098df5f905"; + sha256 = "0r8p0nz3v8wap3iwhv1saak0djdh2lq7bzjsg897jzg1dnv0n44w"; + }; + pythonOptions = { + propagatedBuildInputs = [ pkgs.python3Packages.flake8 ]; + checkInputs = [ pkgs.python3Packages.pytest pkgs.python3Packages.mypy pkgs.python3Packages.flake8 ]; + checkPhase = + '' + pytest + mypy + flake8 + ''; + }; + condaOptions = { dependencies = [ "flake8" ]; }; + })