diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-01 09:46:46 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-06-01 09:46:46 +0200 |
commit | 8d7c94db8a053e00e8feeb64c8584c609f5a5b59 (patch) | |
tree | 096c35d2a994efece5cb9978adaf146522d36146 | |
parent | 44bbfafcf4589624d87b16ae070e0cee22207ce0 (diff) |
python3Packages.adext: enable tests
-rw-r--r-- | pkgs/development/python-modules/adext/default.nix | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/adext/default.nix b/pkgs/development/python-modules/adext/default.nix index df8bc1bd889c9..7b10b0de1b62e 100644 --- a/pkgs/development/python-modules/adext/default.nix +++ b/pkgs/development/python-modules/adext/default.nix @@ -1,19 +1,24 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub , setuptools-scm , alarmdecoder +, pytestCheckHook }: buildPythonPackage rec { pname = "adext"; version = "0.4.2"; - src = fetchPypi { - inherit pname version; - sha256 = "sha256-Y9AvLgclNZdFnZJDoH6/pf8AqHr3WmwysgpJvWKicHo="; + src = fetchFromGitHub { + owner = "ajschmidt8"; + repo = pname; + rev = "v${version}"; + sha256 = "0h5k9kzms2f0r48pdhsgv8pimk0vsxw8vs0k6880mank8ij914wr"; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + nativeBuildInputs = [ setuptools-scm ]; @@ -22,8 +27,10 @@ buildPythonPackage rec { alarmdecoder ]; - # Tests are not published yet - doCheck = false; + checkInputs = [ + pytestCheckHook + ]; + pythonImportsCheck = [ "adext" ]; meta = with lib; { |