diff --git a/pkgs/development/python-modules/pyspiflash/default.nix b/pkgs/development/python-modules/pyspiflash/default.nix index eda0db8b767c..8ef1ab8585da 100644 --- a/pkgs/development/python-modules/pyspiflash/default.nix +++ b/pkgs/development/python-modules/pyspiflash/default.nix @@ -1,21 +1,26 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, pyftdi, + setuptools, }: buildPythonPackage rec { pname = "pyspiflash"; - version = "0.6.3"; - format = "setuptools"; + version = "0.6.5"; + pyproject = true; - src = fetchPypi { - inherit pname version; - sha256 = "0ifnw1qm4nssb03af93qw6vpa92rmyc2hisw9m4043pm9ryqcmpc"; + src = fetchFromGitHub { + owner = "eblot"; + repo = "pyspiflash"; + tag = "v${version}"; + hash = "sha256-NXYXvGSRhsTHu10pDYaZF84+d4QyPKECpuKpmgFstg0="; }; - propagatedBuildInputs = [ pyftdi ]; + build-system = [ setuptools ]; + + dependencies = [ pyftdi ]; # tests are not shipped with the PyPI source doCheck = false; @@ -25,7 +30,8 @@ buildPythonPackage rec { meta = with lib; { description = "SPI data flash device drivers in Python"; homepage = "https://github.com/eblot/pyspiflash"; - license = with licenses; [ mit ]; + changelog = "https://github.com/eblot/pyspiflash/releases/tag/${src.tag}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }