Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-05-23 12:26:48 +00:00
committed by GitHub
21 changed files with 210 additions and 41 deletions

View File

@@ -0,0 +1,35 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "cocotb-bus";
version = "0.1.1";
src = fetchPypi {
inherit pname version;
sha256 = "cc9b0bb00c95061a67f650caf96e3a294bb74ef437124dea456dd9e2a9431854";
};
postPatch = ''
# remove circular dependency cocotb from setup.py
substituteInPlace setup.py --replace '"cocotb>=1.5.0.dev,<2.0"' ""
'';
# tests require cocotb, disable for now to avoid circular dependency
doCheck = false;
# checkPhase = ''
# export PATH=$out/bin:$PATH
# make test
# '';
meta = with lib; {
description = "Pre-packaged testbenching tools and reusable bus interfaces for cocotb";
homepage = "https://github.com/cocotb/cocotb-bus";
license = licenses.bsd3;
maintainers = with maintainers; [ prusnak ];
};
}

View File

@@ -1,19 +1,31 @@
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, setuptools, swig, verilog }:
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, setuptools
, setuptools-scm
, cocotb-bus
, pytest
, swig
, verilog
}:
buildPythonPackage rec {
pname = "cocotb";
version = "1.5.1";
version = "1.5.2";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "02bw2i03vd4rcvdk10qdjl2lbvvy81cn9qpr8vzq8cm9h45689mv";
# - we need to use the tarball from PyPi
# or the full git checkout (with .git)
# - using fetchFromGitHub will cause a build failure,
# because it does not include required metadata
src = fetchPypi {
inherit pname version;
sha256 = "9f4f3e6eb9caeb479e98d604770645b57469cd25b39e28df1916ffcd593efbe6";
};
propagatedBuildInputs = [
setuptools
];
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ setuptools ];
postPatch = ''
patchShebangs bin/*.py
@@ -25,16 +37,14 @@ buildPythonPackage rec {
do
substituteInPlace $f --replace 'shell which' 'shell command -v'
done
# remove circular dependency cocotb-bus from setup.py
substituteInPlace setup.py --replace "'cocotb-bus<1.0'" ""
'';
checkInputs = [ swig verilog ];
checkInputs = [ cocotb-bus pytest swig verilog ];
checkPhase = ''
# test expected failures actually pass because of a fix in our icarus version
# https://github.com/cocotb/cocotb/issues/1952
substituteInPlace tests/test_cases/test_discovery/test_discovery.py \
--replace 'def access_single_bit' $'def foo(x): pass\ndef foo'
export PATH=$out/bin:$PATH
make test
'';

View File

@@ -10,11 +10,11 @@
buildPythonPackage rec {
pname = "croniter";
version = "1.0.9";
version = "1.0.13";
src = fetchPypi {
inherit pname version;
sha256 = "708532f70584207e23ef2989ca40f367e6238bfe050133a1aff43e1e0e6f6092";
sha256 = "sha256-V/Nt9PWhwxu/ULv/o1UWEsGfYVarHoji5CNCzLufm5o=";
};
propagatedBuildInputs = [
@@ -28,6 +28,8 @@ buildPythonPackage rec {
tzlocal
];
pythonImportsCheck = [ "croniter" ];
meta = with lib; {
description = "croniter provides iteration for datetime object with cron like format";
homepage = "https://github.com/kiorky/croniter";

View File

@@ -7,13 +7,13 @@
buildPythonPackage rec {
pname = "pur";
version = "5.4.0";
version = "5.4.1";
src = fetchFromGitHub {
owner = "alanhamlett";
repo = "pip-update-requirements";
rev = version;
sha256 = "1p2g0kz9l0rb59b3rkclb6wwidc93kwqh2hm4xc22b1w9r946six";
sha256 = "sha256-a2wViLJW+UXgHcURxr4irFVkH8STH84AVcwQIkvH+Fg=";
};
propagatedBuildInputs = [

View File

@@ -72,7 +72,7 @@ let
tfFeature = x: if x then "1" else "0";
version = "2.4.0";
version = "2.4.1";
variant = if cudaSupport then "-gpu" else "";
pname = "tensorflow${variant}";
@@ -110,7 +110,7 @@ let
owner = "tensorflow";
repo = "tensorflow";
rev = "v${version}";
sha256 = "0yl06aypfxrcs35828xf04mkidz1x0j89v0q5h4d2xps1cb5rv3f";
sha256 = "sha256-J62QfP45g5nxN9Nqa1tAGyc4vD2JKh50ddHLrd6/qsY=";
};
patches = [