git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #115405 from Luflosi/add-pytest-cid

python3Packages.pytest-cid: init at 1.1.1

commit29cb74cc7d02d229ed2dc7e4262374a61e7a9499 authorSandro <sandro.jaeckel@gmail.com> dateMon 8 Mar 2021, 19:24 (6 years ago) parent448151f942e1a3
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
@@ -6251,6 +6251,8 @@ in {
62516251
62526252 pytest-check = callPackage ../development/python-modules/pytest-check { };
62536253
6254+ pytest-cid = callPackage ../development/python-modules/pytest-cid { };
6255+
62546256 pytest-click = callPackage ../development/python-modules/pytest-click { };
62556257
62566258 pytest-cov = self.pytestcov; # self 2021-01-04