nixpkgs/pkgs/development/python-modules/unify/default.nix

31 lines
726 B
Nix
Raw Normal View History

2021-04-21 17:28:16 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, untokenize
, python
}:
buildPythonPackage rec {
pname = "unify";
version = "0.5";
# 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 ];
checkPhase = "${python.interpreter} -m unittest discover";
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 ];
};
}