depot/third_party/nixpkgs/pkgs/development/python-modules/asdf-standard/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

43 lines
834 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, importlib-resources
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "asdf-standard";
version = "1.0.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "asdf_standard";
inherit version;
hash = "sha256-r9j/mnDnsX9rzGTrkqVEhn1dT+HwB2cZFC/fYrls/UQ=";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [
importlib-resources
];
# Circular dependency on asdf
doCheck = false;
pythonImportsCheck = [
"asdf_standard"
];
meta = with lib; {
description = "Standards document describing ASDF";
homepage = "https://github.com/asdf-format/asdf-standard";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}