python310Packages.pylink-square: 0.8.1 -> 0.13.0

https://github.com/square/pylink/blob/v0.13.0/CHANGELOG.md
main
Robert Schütz 2 years ago committed by Jonathan Ringer
parent 270c6472ad
commit fd028a2a64
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0
  1. 33
      pkgs/development/python-modules/pylink-square/default.nix

@ -6,44 +6,35 @@
, psutil
, six
, future
, pytestCheckHook
}:
let
mock' = mock.overridePythonAttrs (old: rec {
version = "2.0.0";
src = fetchPypi {
inherit (old) pname;
inherit version;
sha256 = "1flbpksir5sqrvq2z0dp8sl4bzbadg21sj4d42w3klpdfvgvcn5i";
};
});
in buildPythonPackage rec {
buildPythonPackage rec {
pname = "pylink-square";
version = "0.8.1";
version = "0.13.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "square";
repo = "pylink";
rev = "v${version}";
sha256 = "1q5sm1017pcqcgwhsliiiv1wh609lrjdlc8f5ihlschk1d0qidpd";
hash = "sha256-SH2oxOlsX5dE8wMXpWPA/rEVrJwxJzizsOiYbwaGjLw=";
};
buildInputs = [ mock' ];
propagatedBuildInputs = [ psutil six future ];
preCheck = ''
# For an unknown reason, `pylink --version` output is different
# inside the nix build environment across different python versions
substituteInPlace tests/unit/test_main.py --replace \
"expected = 'pylink %s' % pylink.__version__" \
"return"
'';
checkInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "pylink" ];
meta = with lib; {
description = "Python interface for the SEGGER J-Link";
homepage = "https://github.com/Square/pylink";
homepage = "https://github.com/square/pylink";
changelog = "https://github.com/square/pylink/blob/${src.rev}/CHANGELOG.md";
maintainers = with maintainers; [ dump_stack ];
license = licenses.asl20;
};

Loading…
Cancel
Save