Merge pull request #234812 from natsukium/filterpy/update

python3Packages.filterpy: 1.4.5 -> unstable-2022-08-23
This commit is contained in:
Martin Weinelt 2023-05-29 21:04:27 +02:00 committed by GitHub
commit 2089380fb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,32 +1,36 @@
{ 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";