mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 23:44:13 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
31 lines
721 B
Nix
31 lines
721 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, untokenize
|
|
, unittestCheckHook
|
|
}:
|
|
|
|
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 ];
|
|
|
|
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 ];
|
|
};
|
|
}
|