nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "ci-py";
10 version = "1.0.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-R/6bLsXOKGxiJDZUvvOuvLp3usEhfg698qvvgOwBXYk=";
16 };
17
18 postPatch = ''
19 substituteInPlace setup.py \
20 --replace "'pytest-runner', " ""
21 '';
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "ci" ];
26
27 meta = {
28 description = "Library for working with Continuous Integration services";
29 homepage = "https://github.com/grantmcconnaughey/ci.py";
30 changelog = "https://github.com/grantmcconnaughey/ci.py/blob/master/CHANGELOG.md";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ bcdarwin ];
33 };
34}