aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/ci-py/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ci-py/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/ci-py/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ci-py/default.nix b/nixpkgs/pkgs/development/python-modules/ci-py/default.nix
new file mode 100644
index 00000000000..30220b48b72
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/ci-py/default.nix
@@ -0,0 +1,26 @@
+{ lib, buildPythonPackage, fetchPypi, isPy27
+, pytest, pytestrunner, pytestCheckHook }:
+
+buildPythonPackage rec {
+ version = "1.0.0";
+ pname = "ci-py";
+
+ disabled = isPy27;
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "12ax07n81vxbyayhwzi1q6x7gfmwmvrvwm1n4ii6qa6fqlp9pzj7";
+ };
+
+ nativeBuildInputs = [ pytestrunner ]; # pytest-runner included in setup-requires
+ checkInputs = [ pytest pytestCheckHook ];
+
+ pythonImportsCheck = [ "ci" ];
+
+ meta = with lib; {
+ description = "Library for working with Continuous Integration services";
+ homepage = "https://github.com/grantmcconnaughey/ci.py";
+ license = licenses.mit;
+ maintainers = with maintainers; [ bcdarwin ];
+ };
+}