summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-slugify/default.nix
blob: b3e3de0285a920cd4f52f7c829274bf47ff90d9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchPypi, buildPythonPackage, unidecode, regex, isPy3k }:

buildPythonPackage rec {
    pname = "python-slugify";
    version = "1.2.6";

    src = fetchPypi {
      inherit pname version;
      sha256 = "7723daf30996db26573176bddcdf5fcb98f66dc70df05c9cb29f2c79b8193245";
    };
    doCheck = !isPy3k;
    # (only) on python3 unittest loader (loadTestsFromModule) fails

    propagatedBuildInputs = [ unidecode regex ];

    meta = with stdenv.lib; {
      homepage = https://github.com/un33k/python-slugify;
      description = "A Python Slugify application that handles Unicode";
      license = licenses.mit;
      platforms = platforms.all;
      maintainers = with maintainers; [ vrthra ];
    };
}