841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
46 lines
877 B
Nix
46 lines
877 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, distro
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, setuptools-scm-git-archive
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ruyaml";
|
|
version = "0.90.0.2";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pycontribs";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0gxvwry7n1gczxkjzyfrr3fammllkvnnamja4yln8xrg3n1h89al";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
setuptools-scm-git-archive
|
|
];
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
propagatedBuildInputs = [
|
|
distro
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "ruyaml" ];
|
|
|
|
meta = with lib; {
|
|
description = "YAML 1.2 loader/dumper package for Python";
|
|
homepage = "https://ruyaml.readthedocs.io/";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|