ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / dictdiffer / default.nix
blob5e043e55f853e98f602d426eb15726a61e383aa1
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , setuptools-scm
7 }:
9 buildPythonPackage rec {
10   pname = "dictdiffer";
11   version = "0.9.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "inveniosoftware";
18     repo = pname;
19     rev = "v${version}";
20     hash = "sha256-lQyPs3lQWtsvNPuvvwJUTDzrFaOX5uwGuRHe3yWUheU=";
21   };
23   SETUPTOOLS_SCM_PRETEND_VERSION = version;
25   nativeBuildInputs = [
26     setuptools-scm
27   ];
29   checkInputs = [
30     pytestCheckHook
31   ];
33   postPatch = ''
34     substituteInPlace setup.py \
35       --replace "'pytest-runner>=2.7'," ""
36     substituteInPlace pytest.ini \
37       --replace ' --isort --pydocstyle --pycodestyle --doctest-glob="*.rst" --doctest-modules --cov=dictdiffer --cov-report=term-missing' ""
38   '';
40   pythonImportsCheck = [
41     "dictdiffer"
42   ];
44   meta = with lib; {
45     description = "Module to diff and patch dictionaries";
46     homepage = "https://github.com/inveniosoftware/dictdiffer";
47     license = licenses.mit;
48     maintainers = with maintainers; [ fab ];
49   };