diff --git a/pkgs/development/python-modules/pylev/default.nix b/pkgs/development/python-modules/pylev/default.nix new file mode 100644 index 00000000000..895171ff713 --- /dev/null +++ b/pkgs/development/python-modules/pylev/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchFromGitHub }: + +buildPythonPackage rec { + pname = "pylev"; + version = "1.3.0"; + + # No tests in PyPi tarball + src = fetchFromGitHub { + owner = "toastdriven"; + repo = "pylev"; + # Can't use a tag because it's missing + # https://github.com/toastdriven/pylev/issues/10 + # rev = "v${version}; + rev = "72e3d490515c3188e2acac9c15ea1b466f9ff938"; + sha256 = "18dg1rfnqgfl6x4vafiq4la9d7f65xak19gcvngslq0bm1z6hyd8"; + }; + + meta = with lib; { + homepage = https://github.com/toastdriven/pylev; + description = "A pure Python Levenshtein implementation that's not freaking GPL'd"; + license = licenses.bsd3; + maintainers = with maintainers; [ jakewaksbaum ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d0d12d2ca72..7e7caa6d179 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -595,6 +595,8 @@ in { pykeepass = callPackage ../development/python-modules/pykeepass { }; + pylev = callPackage ../development/python-modules/pylev { }; + pymatgen = callPackage ../development/python-modules/pymatgen { }; pymatgen-lammps = callPackage ../development/python-modules/pymatgen-lammps { };