diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-30 15:19:18 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2022-07-31 13:29:20 -0700 |
commit | f52f6e99dbf1131886a80112b8c79dfc414afb7c (patch) | |
tree | 05cb7d64b2395922f2f24683da49f472075be12c /var/spack/repos/builtin/packages/g4pii/package.py | |
parent | 549ba1ed32372c67fc57271cde3797d58b7dec6e (diff) | |
download | spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.gz spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.bz2 spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.tar.xz spack-f52f6e99dbf1131886a80112b8c79dfc414afb7c.zip |
black: reformat entire repository with black
Diffstat (limited to 'var/spack/repos/builtin/packages/g4pii/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/g4pii/package.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/g4pii/package.py b/var/spack/repos/builtin/packages/g4pii/package.py index e81de9c867..ce5489d104 100644 --- a/var/spack/repos/builtin/packages/g4pii/package.py +++ b/var/spack/repos/builtin/packages/g4pii/package.py @@ -9,27 +9,26 @@ from spack.package import * class G4pii(Package): """Geant4 data for shell ionisation cross-sections""" + homepage = "https://geant4.web.cern.ch" url = "https://geant4-data.web.cern.ch/geant4-data/datasets/G4PII.1.3.tar.gz" - tags = ['hep'] + tags = ["hep"] - maintainers = ['drbenmorgan'] + maintainers = ["drbenmorgan"] # Only versions relevant to Geant4 releases built by spack are added - version('1.3', sha256='6225ad902675f4381c98c6ba25fc5a06ce87549aa979634d3d03491d6616e926') + version("1.3", sha256="6225ad902675f4381c98c6ba25fc5a06ce87549aa979634d3d03491d6616e926") def install(self, spec, prefix): - mkdirp(join_path(prefix.share, 'data')) - install_path = join_path(prefix.share, 'data', 'G4PII{0}' - .format(self.version)) + mkdirp(join_path(prefix.share, "data")) + install_path = join_path(prefix.share, "data", "G4PII{0}".format(self.version)) install_tree(self.stage.source_path, install_path) def setup_dependent_run_environment(self, env, dependent_spec): - install_path = join_path(self.prefix.share, 'data', 'G4PII{0}' - .format(self.version)) - env.set('G4PIIDATA', install_path) + install_path = join_path(self.prefix.share, "data", "G4PII{0}".format(self.version)) + env.set("G4PIIDATA", install_path) def url_for_version(self, version): """Handle version string.""" - return ("https://geant4-data.web.cern.ch/geant4-data/datasets/G4PII.1.3.tar.gz" % version) + return "https://geant4-data.web.cern.ch/geant4-data/datasets/G4PII.1.3.tar.gz" % version |