File tree Expand file tree Collapse file tree 3 files changed +137
-0
lines changed
development/python-modules Expand file tree Collapse file tree 3 files changed +137
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ pythonOlder ,
6+ pytestCheckHook ,
7+ coverage ,
8+ python ,
9+ setuptools ,
10+ } :
11+
12+ buildPythonPackage rec {
13+ pname = "miss-hit-core" ;
14+ version = "0.9.44" ;
15+ pyproject = true ;
16+
17+ disabled = pythonOlder "3.7" ;
18+
19+ src = fetchFromGitHub {
20+ owner = "florianschanda" ;
21+ repo = "miss_hit" ;
22+ tag = version ;
23+ hash = "sha256-dJZIleDWmdarhmxoKvQxWvI/Tmx9pSCNlgFXj5NFIUc=" ;
24+ } ;
25+
26+ build-system = [ setuptools ] ;
27+
28+ configurePhase = ''
29+ runHook preConfigure
30+
31+ cp setup_gpl.py setup.py
32+ mkdir -p miss_hit_core/resources/assets
33+ cp docs/style.css miss_hit_core/resources
34+ cp docs/assets/* miss_hit_core/resources/assets
35+
36+ runHook postConfigure
37+ '' ;
38+
39+ nativeCheckInputs = [
40+ coverage
41+ ] ;
42+
43+ checkPhase = ''
44+ runHook preCheck
45+
46+ cd tests
47+ ${ python . interpreter } ./run.py --suite=style
48+ ${ python . interpreter } ./run.py --suite=metrics
49+
50+ runHook postCheck
51+ '' ;
52+
53+ pythonImportsCheck = [
54+ "miss_hit_core"
55+ ] ;
56+
57+ meta = {
58+ description = "Code formatting and code metrics for programs written in the MATLAB/Simulink and Octave languages" ;
59+ homepage = "https://misshit.org/" ;
60+ changelog = "https://github.com/florianschanda/miss_hit/releases/tag/${ version } " ;
61+ license = lib . licenses . gpl3Plus ;
62+ maintainers = with lib . maintainers ; [
63+ jacobkoziej
64+ ] ;
65+ } ;
66+ }
Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildPythonPackage ,
4+ fetchFromGitHub ,
5+ pythonOlder ,
6+ pytestCheckHook ,
7+ coverage ,
8+ miss-hit-core ,
9+ python ,
10+ setuptools ,
11+ } :
12+
13+ buildPythonPackage rec {
14+ pname = "miss-hit" ;
15+ version = "0.9.44" ;
16+ pyproject = true ;
17+
18+ disabled = pythonOlder "3.7" ;
19+
20+ src = fetchFromGitHub {
21+ owner = "florianschanda" ;
22+ repo = "miss_hit" ;
23+ tag = version ;
24+ hash = "sha256-dJZIleDWmdarhmxoKvQxWvI/Tmx9pSCNlgFXj5NFIUc=" ;
25+ } ;
26+
27+ build-system = [ setuptools ] ;
28+
29+ dependencies = [
30+ miss-hit-core
31+ ] ;
32+
33+ configurePhase = ''
34+ runHook preConfigure
35+
36+ cp setup_agpl.py setup.py
37+
38+ runHook postConfigure
39+ '' ;
40+
41+ nativeCheckInputs = [
42+ coverage
43+ ] ;
44+
45+ checkPhase = ''
46+ runHook preCheck
47+
48+ cd tests
49+ ${ python . interpreter } ./run.py
50+
51+ runHook postCheck
52+ '' ;
53+
54+ pythonImportsCheck = [
55+ "miss_hit"
56+ ] ;
57+
58+ meta = {
59+ description = "Static analysis and other utilities for programs written in the MATLAB/Simulink and Octave languages" ;
60+ homepage = "https://misshit.org/" ;
61+ changelog = "https://github.com/florianschanda/miss_hit/releases/tag/${ version } " ;
62+ license = lib . licenses . agpl3Plus ;
63+ maintainers = with lib . maintainers ; [
64+ jacobkoziej
65+ ] ;
66+ } ;
67+ }
Original file line number Diff line number Diff line change @@ -8323,6 +8323,10 @@ self: super: with self; {
83238323
83248324 misoc = callPackage ../development/python-modules/misoc { };
83258325
8326+ miss-hit = callPackage ../development/python-modules/miss-hit { };
8327+
8328+ miss-hit-core = callPackage ../development/python-modules/miss-hit-core { };
8329+
83268330 mistletoe = callPackage ../development/python-modules/mistletoe { };
83278331
83288332 mistral-common = callPackage ../development/python-modules/mistral-common { };
You can’t perform that action at this time.
0 commit comments