Unverified Commit 2089380f authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #234812 from natsukium/filterpy/update

python3Packages.filterpy: 1.4.5 -> unstable-2022-08-23
parents 9393f0d7 46a64903
Loading
Loading
Loading
Loading
+19 −15
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, numpy
, scipy
, matplotlib
, pytest
, pytestCheckHook
, isPy3k
}:

buildPythonPackage rec {
  version = "1.4.5";
buildPythonPackage {
  pname = "filterpy";
  version = "unstable-2022-08-23";
  format = "setuptools";

  disabled = !isPy3k;

  src = fetchPypi {
    inherit pname version;
    extension = "zip";
    sha256 = "4f2a4d39e4ea601b9ab42b2db08b5918a9538c168cff1c6895ae26646f3d73b1";
  src = fetchFromGitHub {
    owner = "rlabbe";
    repo = "filterpy";
    rev = "3b51149ebcff0401ff1e10bf08ffca7b6bbc4a33";
    hash = "sha256-KuuVu0tqrmQuNKYmDmdy+TU6BnnhDxh4G8n9BGzjGag=";
  };

  nativeCheckInputs = [ pytest ];
  propagatedBuildInputs = [ numpy scipy matplotlib ];
  nativeCheckInputs = [
    pytestCheckHook
  ];

  # single test fails (even on master branch of repository)
  # project does not use CI
  checkPhase = ''
    pytest --ignore=filterpy/common/tests/test_discretization.py
  '';
  propagatedBuildInputs = [
    numpy
    scipy
    matplotlib
  ];

  meta = with lib; {
    homepage = "https://github.com/rlabbe/filterpy";