git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.cocotb-bus: init at 0.1.1
commitff555e8f887dd0097dbddcac0915618c673b2b51 authorPavol Rusnak <pavol@rusnak.io> dateWed 14 Apr 2021, 15:57 (6 years ago) parentdbfdb51
2 files changed+37
pkgs/development/python-modules/cocotb-bus/default.nix+35 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/cocotb-bus/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ lib
2+, stdenv
3+, buildPythonPackage
4+, fetchPypi
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "cocotb-bus";
9+ version = "0.1.1";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "cc9b0bb00c95061a67f650caf96e3a294bb74ef437124dea456dd9e2a9431854";
14+ };
15+
16+ postPatch = ''
17+ # remove circular dependency cocotb from setup.py
18+ substituteInPlace setup.py --replace '"cocotb>=1.5.0.dev,<2.0"' ""
19+ '';
20+
21+ # tests require cocotb, disable for now to avoid circular dependency
22+ doCheck = false;
23+
24+ # checkPhase = ''
25+ # export PATH=$out/bin:$PATH
26+ # make test
27+ # '';
28+
29+ meta = with lib; {
30+ description = "Pre-packaged testbenching tools and reusable bus interfaces for cocotb";
31+ homepage = "https://github.com/cocotb/cocotb-bus";
32+ license = licenses.bsd3;
33+ maintainers = with maintainers; [ prusnak ];
34+ };
35+}
pkgs/top-level/python-packages.nix+2
@@ -1463,6 +1463,8 @@ in {
14631463
14641464 cocotb = callPackage ../development/python-modules/cocotb { };
14651465
1466+ cocotb-bus = callPackage ../development/python-modules/cocotb-bus { };
1467+
14661468 codecov = callPackage ../development/python-modules/codecov { };
14671469
14681470 codespell = callPackage ../development/python-modules/codespell { };