git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.pytest-cid: init at 1.1.1
commit942e1a363f968678197c6108d1069b8b483ca619 authorLuflosi <luflosi@luflosi.de> dateSun 7 Mar 2021, 21:20 (6 years ago) parent78452c2
2 files changed+42
pkgs/development/python-modules/pytest-cid/default.nix+40 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/pytest-cid/default.nixnew file+40
@@ -0,0 +1,40 @@
1+{ lib
2+, fetchFromGitHub
3+, buildPythonPackage
4+, pythonOlder
5+, py-cid
6+, pytestCheckHook
7+, pytest-cov
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "pytest-cid";
12+ version = "1.1.1";
13+ format = "flit";
14+ disabled = pythonOlder "3.5";
15+
16+ src = fetchFromGitHub {
17+ owner = "ntninja";
18+ repo = pname;
19+ rev = "1ff9ec43ac9eaf76352ea7e7a060cd081cb8b68a"; # Version has no git tag
20+ sha256 = "sha256-H2RtMGYWukowTTfqZSx+hikxzkqw1v5bA4AfZfiVl8U=";
21+ };
22+
23+ propagatedBuildInputs = [
24+ py-cid
25+ ];
26+
27+ checkInputs = [
28+ pytestCheckHook
29+ pytest-cov
30+ ];
31+
32+ pythonImportsCheck = [ "pytest_cid" ];
33+
34+ meta = with lib; {
35+ homepage = "https://github.com/ntninja/pytest-cid";
36+ description = "A simple wrapper around py-cid for easily writing tests involving CIDs in datastructures";
37+ license = licenses.mpl20;
38+ maintainers = with maintainers; [ Luflosi ];
39+ };
40+}
pkgs/top-level/python-packages.nix+2
@@ -6249,6 +6249,8 @@ in {
62496249
62506250 pytest-check = callPackage ../development/python-modules/pytest-check { };
62516251
6252+ pytest-cid = callPackage ../development/python-modules/pytest-cid { };
6253+
62526254 pytest-click = callPackage ../development/python-modules/pytest-click { };
62536255
62546256 pytest-cov = self.pytestcov; # self 2021-01-04