about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/unify/default.nix
blob: 58bee2b6e52e56c61428b9b81d4748c787d28971 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, untokenize
, unittestCheckHook
}:

buildPythonPackage rec {
  pname = "unify";
  version = "0.5";
  format = "setuptools";

  # PyPi release is missing tests (see https://github.com/myint/unify/pull/18)
  src = fetchFromGitHub {
    owner = "myint";
    repo = "unify";
    rev = "v${version}";
    sha256 = "1l6xxygaigacsxf0g5f7w5gpqha1ava6mcns81kqqy6vw91pyrbi";
  };

  propagatedBuildInputs = [ untokenize ];

  nativeCheckInputs = [ unittestCheckHook ];

  meta = with lib; {
    description = "Modifies strings to all use the same quote where possible";
    homepage = "https://github.com/myint/unify";
    license = licenses.mit;
    maintainers = with maintainers; [ FlorianFranzen ];
  };
}