python.pkgs.pyaml: move expression

This commit is contained in:
Frederik Rietdijk 2017-12-30 15:45:52 +01:00
parent d3b85a4607
commit 966bc7c383
2 changed files with 28 additions and 17 deletions

View file

@ -0,0 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
, pyyaml
, unidecode
, python
}:
buildPythonPackage rec {
pname = "pyaml";
version = "15.02.1";
src = fetchPypi {
inherit pname version;
sha256 = "8dfe1b295116115695752acc84d15ecf5c1c469975fbed7672bf41a6bc6d6d51";
};
propagatedBuildInputs = [ pyyaml ];
checkInputs = [ unidecode ];
meta = {
description = "PyYAML-based module to produce pretty and readable YAML-serialized data";
homepage = https://github.com/mk-fg/pretty-yaml;
license = lib.licenses.wtfpl;
};
}

View file

@ -15698,23 +15698,7 @@ in {
pyxattr = callPackage ../development/python-modules/pyxattr { };
pyaml = buildPythonPackage (rec {
name = "pyaml-15.02.1";
disabled = !isPy27;
src = pkgs.fetchurl {
url = "mirror://pypi/p/pyaml/${name}.tar.gz";
sha256 = "8dfe1b295116115695752acc84d15ecf5c1c469975fbed7672bf41a6bc6d6d51";
};
buildInputs = with self; [ pyyaml ];
meta = {
description = "PyYAML-based module to produce pretty and readable YAML-serialized data";
homepage = https://github.com/mk-fg/pretty-yaml;
};
});
pyaml = callPackage ../development/python-modules/pyaml { };
pyyaml = buildPythonPackage (rec {
name = "PyYAML-3.12";