blob: c3cff5b1a676afd5542016a68f1c7f664ac5903e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "dictdiffer";
version = "0.9.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "inveniosoftware";
repo = "dictdiffer";
rev = "v${version}";
hash = "sha256-lQyPs3lQWtsvNPuvvwJUTDzrFaOX5uwGuRHe3yWUheU=";
};
nativeBuildInputs = [ setuptools-scm ];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest-runner>=2.7'," ""
substituteInPlace pytest.ini \
--replace ' --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=dictdiffer --cov-report=term-missing' ""
'';
pythonImportsCheck = [ "dictdiffer" ];
meta = {
description = "Module to diff and patch dictionaries";
homepage = "https://github.com/inveniosoftware/dictdiffer";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
|