diff --git a/pkgs/development/python-modules/adext/default.nix b/pkgs/development/python-modules/adext/default.nix index df8bc1bd889..7b10b0de1b6 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; {