mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
pythonPackages.ruamel_yaml: refactor move to python-modules
This commit is contained in:
parent
cbd33011de
commit
00209911b0
31
pkgs/development/python-modules/ruamel_yaml/default.nix
Normal file
31
pkgs/development/python-modules/ruamel_yaml/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, ruamel_base
|
||||
, typing
|
||||
, ruamel_ordereddict
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ruamel.yaml";
|
||||
version = "0.15.35";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0xggyfaj6vprggahf7cq8kp9j79rb7hn8ndk3bxj2sxvwhhliiwd";
|
||||
};
|
||||
|
||||
# Tests cannot load the module to test
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ ruamel_base typing ]
|
||||
++ stdenv.lib.optional (!isPy3k) ruamel_ordereddict;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
|
||||
homepage = https://bitbucket.org/ruamel/yaml;
|
||||
license = licenses.mit;
|
||||
};
|
||||
|
||||
}
|
@ -3664,27 +3664,7 @@ in {
|
||||
|
||||
typeguard = callPackage ../development/python-modules/typeguard { };
|
||||
|
||||
ruamel_yaml = buildPythonPackage rec {
|
||||
name = "ruamel.yaml-${version}";
|
||||
version = "0.15.35";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/r/ruamel.yaml/${name}.tar.gz";
|
||||
sha256 = "0xggyfaj6vprggahf7cq8kp9j79rb7hn8ndk3bxj2sxvwhhliiwd";
|
||||
};
|
||||
|
||||
# Tests cannot load the module to test
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = with self; [ ruamel_base typing ] ++
|
||||
(optional (!isPy3k) self.ruamel_ordereddict);
|
||||
|
||||
meta = {
|
||||
description = "YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order";
|
||||
homepage = https://bitbucket.org/ruamel/yaml;
|
||||
license = licenses.mit;
|
||||
};
|
||||
};
|
||||
ruamel_yaml = callPackage ../development/python-modules/ruamel_yaml { };
|
||||
|
||||
runsnakerun = buildPythonPackage rec {
|
||||
name = "runsnakerun-2.0.4";
|
||||
|
Loading…
Reference in New Issue
Block a user